@univerjs-pro/resources 1.0.0-insiders.20260717-1e84621

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,162 @@
1
+ # @univerjs-pro/resources
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@univerjs-pro/resources?style=flat-square)](https://npmjs.com/package/@univerjs-pro/resources)
4
+ [![license](https://img.shields.io/npm/l/@univerjs-pro/resources?style=flat-square)](https://npmjs.com/package/@univerjs-pro/resources)
5
+ [![downloads](https://img.shields.io/npm/dm/@univerjs-pro/resources?style=flat-square)](https://npmjs.com/package/@univerjs-pro/resources)
6
+
7
+ `@univerjs-pro/resources` is part of Univer Pro. It provides a product-independent static resource registry.
8
+
9
+ ## Package Overview
10
+
11
+ | Package | UMD global | CSS | Locales | Facade entry |
12
+ | --- | --- | :---: | :---: | :---: |
13
+ | `@univerjs-pro/resources` | `UniverProResources` | No | No | No |
14
+
15
+ ## Installation
16
+
17
+ ```sh
18
+ pnpm add @univerjs-pro/resources
19
+ # or
20
+ npm install @univerjs-pro/resources
21
+ ```
22
+
23
+ Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
24
+
25
+ ## Usage
26
+
27
+ ### Runtime registration
28
+
29
+ ```ts
30
+ import { ResourceRegistryService } from '@univerjs-pro/resources';
31
+
32
+ const resources = new ResourceRegistryService();
33
+ resources.register({
34
+ registryId: 'acme',
35
+ resources: [{
36
+ id: 'logo',
37
+ name: 'Logo',
38
+ payload: {
39
+ type: 'image',
40
+ source: { type: 'url', value: 'https://assets.example/logo.svg' },
41
+ intrinsicSize: { width: 240, height: 80 },
42
+ },
43
+ }],
44
+ });
45
+ ```
46
+
47
+ ### Manifest registration
48
+
49
+ Store static registrations in a JSON manifest:
50
+
51
+ ```json
52
+ {
53
+ "registrations": [{
54
+ "input": {
55
+ "registryId": "acme",
56
+ "groups": [{ "id": "brand", "label": "Brand" }],
57
+ "tags": [{ "id": "logo", "label": "Logo" }],
58
+ "defaults": { "storagePolicy": "reference" },
59
+ "resources": [{
60
+ "id": "primary-logo",
61
+ "name": "Primary logo",
62
+ "groupId": "brand",
63
+ "tagIds": ["logo"],
64
+ "payload": {
65
+ "type": "image",
66
+ "source": {
67
+ "type": "url",
68
+ "value": "https://assets.example/logo.svg"
69
+ },
70
+ "intrinsicSize": { "width": 240, "height": 80 }
71
+ }
72
+ }]
73
+ }
74
+ }]
75
+ }
76
+ ```
77
+
78
+ Import the manifest and pass it to the plugin:
79
+
80
+ ```ts
81
+ import { UniverResourcesPlugin } from '@univerjs-pro/resources';
82
+ import resourcesManifest from './resources-manifest.json';
83
+
84
+ univer.registerPlugin(UniverResourcesPlugin, resourcesManifest);
85
+ ```
86
+
87
+ The plugin owns these registrations and disposes them with its lifecycle.
88
+
89
+ ## Manifest fields
90
+
91
+ The following tables describe the generic manifest fields supported by the resources package.
92
+
93
+ ### Manifest and registration
94
+
95
+ | Field | Required | Description |
96
+ | --- | :---: | --- |
97
+ | `registrations` | No | Registration entries to load when the plugin starts. Defaults to an empty array. |
98
+ | `registrations[].input` | Yes | The resource collection passed to the registry. |
99
+ | `registrations[].options` | No | Registration behavior. See [Registration options](#registration-options). |
100
+
101
+ ### Registration input
102
+
103
+ | Field | Required | Description |
104
+ | --- | :---: | --- |
105
+ | `registryId` | Yes | Namespace for the resources. It must match `[A-Za-z0-9][A-Za-z0-9._:-]*`. |
106
+ | `defaultLocale` | No | Fallback locale for localized text when the requested locale is absent. |
107
+ | `groups` | No | Groups available to resources in this registration. Group IDs must be unique within the array. |
108
+ | `tags` | No | Tags available to resources in this registration. Tag IDs must be unique within the array. |
109
+ | `resources` | Yes | Resource descriptors to register. |
110
+ | `defaults.storagePolicy` | No | Default image storage policy: `reference` or `managed`. Defaults to `reference`. |
111
+
112
+ Groups and tags contain an `id` and a `label`. Labels, resource names, and descriptions accept strings or locale maps. For example: `{ "en-US": "Logo", "zh-CN": "标志" }`.
113
+
114
+ ### Resource descriptor
115
+
116
+ | Field | Required | Description |
117
+ | --- | :---: | --- |
118
+ | `id` | Yes | Resource ID within the registry. It must match `[A-Za-z0-9][A-Za-z0-9._:-]*`. |
119
+ | `name` | Yes | Display name as a string or locale map. |
120
+ | `description` | No | Description as a string or locale map. |
121
+ | `groupId` | No | ID from `input.groups`. Unknown groups reject the resource. |
122
+ | `tagIds` | No | IDs from `input.tags`. An unknown tag rejects the resource. |
123
+ | `keywords` | No | Additional search terms. |
124
+ | `order` | No | Sort order used by consumers. |
125
+ | `preview` | No | Image source used for previews. It follows the same source rules as `payload.source`. |
126
+ | `payload` | Yes | Product payload. The built-in image payload is described below. |
127
+
128
+ Resource identity combines `registryId` and resource `id`. A duplicate identity keeps the first registered resource.
129
+
130
+ ### Image payload
131
+
132
+ | Field | Required | Description |
133
+ | --- | :---: | --- |
134
+ | `type` | Yes | Use `image` for the built-in image payload. |
135
+ | `source` | Yes | Image source. See [Image sources](#image-sources). |
136
+ | `intrinsicSize` | No | `{ width, height }` in pixels. Both values must be finite positive numbers. Consumers can preserve the aspect ratio without loading the image. |
137
+ | `storagePolicy` | No | `reference` or `managed`. Overrides `defaults.storagePolicy`. |
138
+ | `colorEditable` | No | Whether consumers may recolor the image. Defaults to `false`. |
139
+ | `initialColor` | No | Initial color string for color-editable resources. |
140
+
141
+ ### Image sources
142
+
143
+ Every source has a `type` and string `value`.
144
+
145
+ | Type | Accepted value |
146
+ | --- | --- |
147
+ | `url` | Absolute `http:`, `https:`, or `blob:` URL. Relative URLs are rejected. |
148
+ | `dataUrl` | Image data URL such as `data:image/png;base64,iVBORw0KGgo=`. |
149
+ | `svgText` | Raw SVG markup. |
150
+
151
+ The registry sanitizes SVG data URLs and raw SVG markup by default. It does not download URL sources during registration.
152
+
153
+ ### Registration options
154
+
155
+ | Field | Required | Description |
156
+ | --- | :---: | --- |
157
+ | `trusted` | No | Set to `true` only for trusted manifests that may bypass SVG sanitization. Defaults to `false`. |
158
+
159
+ ## Resources
160
+
161
+ - [Documentation](https://docs.univer.ai/guides/pro)
162
+ - [NPM package](https://npmjs.com/package/@univerjs-pro/resources)
@@ -0,0 +1 @@
1
+ const _0x45a4bd=_0x2ea8;(function(_0x55d63a,_0x104c46){const _0x5c52a6=_0x2ea8,_0xf68325=_0x55d63a();while(!![]){try{const _0x3f7ede=-parseInt(_0x5c52a6(0x254))/0x1+-parseInt(_0x5c52a6(0x1db))/0x2*(-parseInt(_0x5c52a6(0x20c))/0x3)+-parseInt(_0x5c52a6(0x1fd))/0x4*(parseInt(_0x5c52a6(0x1d8))/0x5)+parseInt(_0x5c52a6(0x1c5))/0x6*(-parseInt(_0x5c52a6(0x205))/0x7)+-parseInt(_0x5c52a6(0x245))/0x8+-parseInt(_0x5c52a6(0x20f))/0x9*(-parseInt(_0x5c52a6(0x1da))/0xa)+-parseInt(_0x5c52a6(0x230))/0xb*(-parseInt(_0x5c52a6(0x21b))/0xc);if(_0x3f7ede===_0x104c46)break;else _0xf68325['push'](_0xf68325['shift']());}catch(_0x1ff8d6){_0xf68325['push'](_0xf68325['shift']());}}}(_0x4b92,0x772e1),Object[_0x45a4bd(0x1f0)](exports,Symbol[_0x45a4bd(0x235)],{'value':_0x45a4bd(0x1e9)}));let e=require('@univerjs-pro/license'),t=require('@univerjs/core'),n=require('rxjs');function r(_0x2b7ec1,_0x407f08,_0x51a6f0,_0x90356){const _0x46ab5d=_0x45a4bd;var _0x62aaba,_0x3cbae2,_0x50ca27;return typeof _0x2b7ec1==_0x46ab5d(0x20b)?_0x2b7ec1:(_0x62aaba=(_0x3cbae2=(_0x50ca27=_0x2b7ec1[_0x407f08])==null?_0x51a6f0?_0x2b7ec1[_0x51a6f0]:void 0x0:_0x50ca27)==null?Object[_0x46ab5d(0x1e2)](_0x2b7ec1)[0x0]:_0x3cbae2)==null?_0x90356:_0x62aaba;}function i(_0x5a03f0){const _0x230faa=_0x45a4bd;return _0x5a03f0['normalize'](_0x230faa(0x1f3))[_0x230faa(0x19e)]()[_0x230faa(0x1f2)]()[_0x230faa(0x1e8)](/\s+/g,'\x20');}const a=_0x45a4bd(0x1c0),o=new Set(['svg','g','path',_0x45a4bd(0x1fb),_0x45a4bd(0x1e3),_0x45a4bd(0x225),_0x45a4bd(0x208),_0x45a4bd(0x256),'polygon',_0x45a4bd(0x1ea),_0x45a4bd(0x242),_0x45a4bd(0x26c),_0x45a4bd(0x1ce),_0x45a4bd(0x274),_0x45a4bd(0x1df),_0x45a4bd(0x252),_0x45a4bd(0x204),_0x45a4bd(0x1fe),_0x45a4bd(0x269),_0x45a4bd(0x20e)]),s=new Set(_0x45a4bd(0x19f)[_0x45a4bd(0x1f8)]('.')),c=/<!--[\s\S]*?-->|<!\[CDATA\[[\s\S]*?\]\]>|<\?[\s\S]*?\?>/g,l=/<(?![!?/])/g,u=/url\s*\(/i,d=/url\s*\(\s*#[A-Za-z0-9_.:-]+\s*\)/gi,f=/^#[A-Za-z0-9_.:-]+$/,p=new Set([_0x45a4bd(0x23c),_0x45a4bd(0x1ee),_0x45a4bd(0x231),_0x45a4bd(0x1df)]);function m(_0x4646e3){const _0x247242=_0x45a4bd;let _0x48bd4a=0x0;for(let _0x4eed1b of _0x4646e3['replace'](c,'')[_0x247242(0x1f6)](l))if(_0x48bd4a+=0x1,_0x48bd4a>0x2710)return!0x0;return!0x1;}function h(_0x11bcdc){const _0x6b65c3=_0x45a4bd;return u[_0x6b65c3(0x1e5)](_0x11bcdc)?u[_0x6b65c3(0x1e5)](_0x11bcdc[_0x6b65c3(0x1e8)](d,'')):!0x1;}function g(_0x1e9e44){const _0x1f4ae3=_0x45a4bd;for(let _0x71217e of Array['from'](_0x1e9e44[_0x1f4ae3(0x1cb)])){let _0x2779c1=_0x71217e[_0x1f4ae3(0x1b0)],_0x41b1ed=_0x2779c1[_0x1f4ae3(0x1b2)](),_0x49f478=_0x41b1ed===_0x1f4ae3(0x220)||_0x41b1ed===_0x1f4ae3(0x1aa);(_0x41b1ed[_0x1f4ae3(0x1cd)]('on')||_0x41b1ed===_0x1f4ae3(0x1b9)||!s[_0x1f4ae3(0x22b)](_0x2779c1)||_0x49f478&&!f[_0x1f4ae3(0x1e5)](_0x71217e[_0x1f4ae3(0x238)])||p['has'](_0x41b1ed)&&_0x71217e[_0x1f4ae3(0x238)]['includes']('\x5c')||h(_0x71217e['value']))&&_0x1e9e44[_0x1f4ae3(0x1af)](_0x71217e);}}function _(_0x5dc48c){const _0x416c78=_0x45a4bd;for(let _0x184a4d of Array[_0x416c78(0x1b3)](_0x5dc48c['childNodes']))_0x184a4d[_0x416c78(0x1e7)]===0x7||_0x184a4d[_0x416c78(0x1e7)]===0x8?_0x184a4d[_0x416c78(0x227)]():_(_0x184a4d);}function v(_0x11f5df){const _0x31d938=_0x45a4bd;if(new TextEncoder()['encode'](_0x11f5df)[_0x31d938(0x251)]>0x100000)return{'ok':!0x1,'code':_0x31d938(0x21a)};if(m(_0x11f5df))return{'ok':!0x1,'code':_0x31d938(0x24e)};if(typeof DOMParser>'u'||typeof XMLSerializer>'u')return{'ok':!0x1,'code':_0x31d938(0x241)};try{let _0x181f53=new DOMParser()['parseFromString'](_0x11f5df,_0x31d938(0x25e)),_0x18679d=_0x181f53[_0x31d938(0x250)];if(_0x18679d[_0x31d938(0x1a9)]!==_0x31d938(0x1b5)||_0x181f53[_0x31d938(0x1dc)](_0x31d938(0x24b))||_0x18679d[_0x31d938(0x215)]!==null&&_0x18679d[_0x31d938(0x215)]!==''&&_0x18679d[_0x31d938(0x215)]!==a)return{'ok':!0x1,'code':_0x31d938(0x1ef)};if(_0x181f53['doctype'])return{'ok':!0x1,'code':'unsafe-svg'};_(_0x181f53);for(let _0x5f45f8 of Array['from'](_0x181f53[_0x31d938(0x263)]('*'))){if(!o[_0x31d938(0x22b)](_0x5f45f8[_0x31d938(0x1a9)])){_0x5f45f8[_0x31d938(0x227)]();continue;}g(_0x5f45f8);}return _0x18679d[_0x31d938(0x215)]||_0x18679d[_0x31d938(0x23b)](_0x31d938(0x23f),_0x31d938(0x236),a),{'ok':!0x0,'value':new XMLSerializer()[_0x31d938(0x202)](_0x181f53)};}catch{return{'ok':!0x1,'code':_0x31d938(0x1ef)};}}const y=_0x45a4bd(0x26b),b={};var x='@univerjs-pro/resources',S=_0x45a4bd(0x1c2);function _0x2ea8(_0x554d65,_0xeb00f7){_0x554d65=_0x554d65-0x19e;const _0x4b9234=_0x4b92();let _0x2ea8e8=_0x4b9234[_0x554d65];return _0x2ea8e8;}function C(_0x5729fb){'@babel/helpers - typeof';const _0x2ad3d6=_0x45a4bd;return C=typeof Symbol==_0x2ad3d6(0x237)&&typeof Symbol['iterator']==_0x2ad3d6(0x269)?function(_0x299f38){return typeof _0x299f38;}:function(_0x4975c3){const _0x531637=_0x2ad3d6;return _0x4975c3&&typeof Symbol==_0x531637(0x237)&&_0x4975c3['constructor']===Symbol&&_0x4975c3!==Symbol['prototype']?_0x531637(0x269):typeof _0x4975c3;},C(_0x5729fb);}function w(_0x43bac1,_0x12b5b3){const _0x5e953e=_0x45a4bd;if(C(_0x43bac1)!=_0x5e953e(0x259)||!_0x43bac1)return _0x43bac1;var _0x21df38=_0x43bac1[Symbol[_0x5e953e(0x1a6)]];if(_0x21df38!==void 0x0){var _0x45ca03=_0x21df38[_0x5e953e(0x222)](_0x43bac1,_0x12b5b3||_0x5e953e(0x253));if(C(_0x45ca03)!='object')return _0x45ca03;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x12b5b3===_0x5e953e(0x20b)?String:Number)(_0x43bac1);}function T(_0x379015){const _0x3110d5=_0x45a4bd;var _0x2b246d=w(_0x379015,_0x3110d5(0x20b));return C(_0x2b246d)=='symbol'?_0x2b246d:_0x2b246d+'';}function E(_0x58caf1,_0x337e16,_0x2a3b94){const _0x1a22f5=_0x45a4bd;return(_0x337e16=T(_0x337e16))in _0x58caf1?Object[_0x1a22f5(0x1f0)](_0x58caf1,_0x337e16,{'value':_0x2a3b94,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x58caf1[_0x337e16]=_0x2a3b94,_0x58caf1;}const D=(0x0,t[_0x45a4bd(0x264)])(_0x45a4bd(0x209));var O=class{constructor(){const _0x4ef93c=_0x45a4bd;E(this,_0x4ef93c(0x25f),new Map());}[_0x45a4bd(0x246)](_0x5e781f){const _0x5a6acb=_0x45a4bd;let _0x35cb6c=_0x5e781f['type'];if(!this['_handlers'][_0x5a6acb(0x22b)](_0x35cb6c))return this[_0x5a6acb(0x25f)]['set'](_0x35cb6c,_0x5e781f),(0x0,t[_0x5a6acb(0x24a)])(()=>{const _0x167a92=_0x5a6acb;this['_handlers'][_0x167a92(0x224)](_0x35cb6c)===_0x5e781f&&this['_handlers'][_0x167a92(0x1d5)](_0x35cb6c);});}[_0x45a4bd(0x224)](_0x58438a){const _0x4878a2=_0x45a4bd;return this['_handlers'][_0x4878a2(0x224)](_0x58438a);}[_0x45a4bd(0x1bb)](){const _0x7921f0=_0x45a4bd;return new Set(this[_0x7921f0(0x25f)][_0x7921f0(0x24d)]());}};const k=/^[A-Za-z0-9][A-Za-z0-9._:-]*$/,A=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,j=(0x0,t[_0x45a4bd(0x264)])('resources.registry.service');function M(_0x22cd15){const _0x4d3020=_0x45a4bd;return JSON[_0x4d3020(0x1fa)]([_0x22cd15['registryId'],_0x22cd15[_0x4d3020(0x233)]]);}function N(_0x80cd3b){const _0x38328c=_0x45a4bd;return typeof _0x80cd3b=='string'?_0x80cd3b:Object[_0x38328c(0x26f)]({..._0x80cd3b});}function P(_0x4cc1b2){const _0x2b71e8=_0x45a4bd;return Object[_0x2b71e8(0x26f)]({'id':_0x4cc1b2['id'],'label':N(_0x4cc1b2[_0x2b71e8(0x1be)])});}function F(_0x432064){const _0x4b9042=_0x45a4bd;return Object[_0x4b9042(0x26f)]({'id':_0x432064['id'],'label':N(_0x432064[_0x4b9042(0x1be)])});}function I(_0x1b47a0){const _0x3ed403=_0x45a4bd;return Object[_0x3ed403(0x26f)]({'type':_0x1b47a0[_0x3ed403(0x1f5)],'value':_0x1b47a0[_0x3ed403(0x238)]});}function L(_0x2993e1){const _0x20de35=_0x45a4bd;return Object[_0x20de35(0x26f)]({..._0x2993e1,..._0x2993e1[_0x20de35(0x203)]===void 0x0?{}:{'reference':Object[_0x20de35(0x26f)]({..._0x2993e1[_0x20de35(0x203)]})}});}function R(_0x3b8ddb){const _0x29b727=_0x45a4bd;try{let _0x23428e=atob(_0x3b8ddb),_0x1bff90=Uint8Array[_0x29b727(0x1b3)](_0x23428e,_0xdba57e=>_0xdba57e[_0x29b727(0x1f4)](0x0));return new TextDecoder(_0x29b727(0x223),{'fatal':!0x0})[_0x29b727(0x1a8)](_0x1bff90);}catch{return;}}function z(_0x6a158b){const _0x3c3c9a=_0x45a4bd;let [_0x566ccd,_0x6fa85d,..._0x3decda]=_0x6a158b[_0x3c3c9a(0x1f2)]()['split']('/');if(!(_0x3decda[_0x3c3c9a(0x229)]>0x0||!A[_0x3c3c9a(0x1e5)](_0x566ccd)||!A[_0x3c3c9a(0x1e5)](_0x6fa85d)))return _0x566ccd['toLowerCase']()+'/'+_0x6fa85d[_0x3c3c9a(0x1b2)]();}function B(_0x29cc8e,_0x2e823e){const _0x17bea4=_0x45a4bd;let _0x3d87ba=/^data:([^;,]+)((?:;[^,]*)*),(.*)$/is['exec'](_0x29cc8e['value']),_0x14371f=_0x3d87ba&&z(_0x3d87ba[0x1]);if(!_0x3d87ba||!(_0x14371f!=null&&_0x14371f[_0x17bea4(0x1cd)](_0x17bea4(0x244))))return{'ok':!0x1,'code':_0x17bea4(0x226)};if(_0x14371f!==_0x17bea4(0x25e)||_0x2e823e)return{'ok':!0x0,'source':_0x29cc8e};let _0x44db24=_0x3d87ba[0x2][_0x17bea4(0x1f8)](';')[_0x17bea4(0x273)](Boolean),_0x44609e=_0x3d87ba[0x3],_0x4e802d;if(_0x44db24[_0x17bea4(0x1e6)](_0x26456b=>_0x26456b['toLowerCase']()==='base64'))_0x4e802d=R(_0x44609e);else try{_0x4e802d=decodeURIComponent(_0x44609e);}catch{_0x4e802d=void 0x0;}if(_0x4e802d===void 0x0)return{'ok':!0x1,'code':_0x17bea4(0x226)};let _0x274eee=v(_0x4e802d);return _0x274eee['ok']?{'ok':!0x0,'source':{'type':_0x17bea4(0x1a0),'value':_0x17bea4(0x267)+encodeURIComponent(_0x274eee[_0x17bea4(0x238)])}}:{'ok':!0x1,'code':_0x17bea4(0x241)};}function V(_0x4056ff,_0x556907){const _0x1269dd=_0x45a4bd;if(_0x4056ff[_0x1269dd(0x1f5)]==='url')try{let _0x3fc86f=new URL(_0x4056ff[_0x1269dd(0x238)])[_0x1269dd(0x239)];return[_0x1269dd(0x1ac),'https:','blob:'][_0x1269dd(0x272)](_0x3fc86f)?{'ok':!0x0,'source':_0x4056ff}:{'ok':!0x1,'code':_0x1269dd(0x226)};}catch{return{'ok':!0x1,'code':_0x1269dd(0x226)};}if(_0x4056ff[_0x1269dd(0x1f5)]===_0x1269dd(0x1a0))return B(_0x4056ff,_0x556907);if(_0x4056ff['type']===_0x1269dd(0x1ab)){if(_0x556907)return{'ok':!0x0,'source':_0x4056ff};let _0x7d0c9b=v(_0x4056ff['value']);return _0x7d0c9b['ok']?{'ok':!0x0,'source':{'type':_0x1269dd(0x1ab),'value':_0x7d0c9b[_0x1269dd(0x238)]}}:{'ok':!0x1,'code':_0x1269dd(0x241)};}return{'ok':!0x1,'code':_0x1269dd(0x226)};}function H(_0x26afdb){const _0x488d53=_0x45a4bd;if(typeof _0x26afdb!='object'||!_0x26afdb)return!0x1;let _0x58163a=_0x26afdb;return(_0x58163a[_0x488d53(0x1f5)]===_0x488d53(0x1d1)||_0x58163a['type']==='dataUrl'||_0x58163a[_0x488d53(0x1f5)]===_0x488d53(0x1ab))&&typeof _0x58163a['value']=='string';}function U(_0x439682){const _0x25cdb6=_0x45a4bd;return _0x439682===void 0x0||_0x439682==='reference'||_0x439682===_0x25cdb6(0x207);}function W(_0x16ad64){const _0x54274f=_0x45a4bd;if(_0x16ad64===void 0x0)return!0x0;if(typeof _0x16ad64!='object'||!_0x16ad64)return!0x1;let _0x1ea15b=_0x16ad64;return typeof _0x1ea15b['width']=='number'&&Number['isFinite'](_0x1ea15b[_0x54274f(0x1a1)])&&_0x1ea15b[_0x54274f(0x1a1)]>0x0&&typeof _0x1ea15b['height']==_0x54274f(0x1c6)&&Number[_0x54274f(0x1eb)](_0x1ea15b['height'])&&_0x1ea15b[_0x54274f(0x275)]>0x0;}function G(_0x4979d2,_0x30e334){const _0x3154f0=_0x45a4bd;return!U(_0x4979d2[_0x3154f0(0x1c9)])||!U(_0x30e334)||_0x4979d2[_0x3154f0(0x221)]!==void 0x0&&typeof _0x4979d2['colorEditable']!=_0x3154f0(0x1cf)||!W(_0x4979d2[_0x3154f0(0x1d7)])?!0x1:_0x4979d2[_0x3154f0(0x21d)]===void 0x0||typeof _0x4979d2['initialColor']==_0x3154f0(0x20b);}function K(_0x53230f,_0x3501a9,_0x2deced){const _0x12cdb3=_0x45a4bd;var _0x2884b0,_0x472a83,_0xa464cb,_0x3e1884,_0x30e26f;let _0xf784e1;if(_0x53230f[_0x12cdb3(0x21f)]!==void 0x0){if(!H(_0x53230f[_0x12cdb3(0x21f)]))return{'ok':!0x1,'code':_0x12cdb3(0x226)};let _0x16d52c=V(_0x53230f[_0x12cdb3(0x21f)],_0x2deced);if(!_0x16d52c['ok'])return _0x16d52c;_0xf784e1=I(_0x16d52c[_0x12cdb3(0x1d9)]);}let _0x1d60e8=_0x53230f[_0x12cdb3(0x234)];if(typeof _0x1d60e8!=_0x12cdb3(0x259)||!_0x1d60e8||typeof _0x1d60e8['type']!=_0x12cdb3(0x20b))return{'ok':!0x1,'code':'invalid-image-payload'};let _0x4794c9=_0x53230f;if(_0x1d60e8[_0x12cdb3(0x1f5)]!==_0x12cdb3(0x22d))return{'ok':!0x0,'descriptor':_0xf784e1===void 0x0?{..._0x4794c9}:{..._0x4794c9,'preview':_0xf784e1}};let _0x32db1f=_0x1d60e8;if(!H(_0x32db1f[_0x12cdb3(0x1d9)])||!G(_0x32db1f,(_0x2884b0=_0x3501a9[_0x12cdb3(0x24f)])==null?void 0x0:_0x2884b0[_0x12cdb3(0x1c9)]))return{'ok':!0x1,'code':_0x12cdb3(0x22e)};let _0x1ab27b=(_0x472a83=(_0xa464cb=_0x32db1f['storagePolicy'])==null?(_0x3e1884=_0x3501a9[_0x12cdb3(0x24f)])==null?void 0x0:_0x3e1884['storagePolicy']:_0xa464cb)==null?_0x12cdb3(0x203):_0x472a83,_0x2f6736=V(_0x32db1f[_0x12cdb3(0x1d9)],_0x2deced);if(!_0x2f6736['ok'])return _0x2f6736;let _0x386cc7={..._0x32db1f,'source':I(_0x2f6736[_0x12cdb3(0x1d9)]),..._0x32db1f[_0x12cdb3(0x1d7)]===void 0x0?{}:{'intrinsicSize':Object[_0x12cdb3(0x26f)]({..._0x32db1f['intrinsicSize']})},'storagePolicy':_0x1ab27b,'colorEditable':(_0x30e26f=_0x32db1f[_0x12cdb3(0x221)])==null?!0x1:_0x30e26f};return Object[_0x12cdb3(0x26f)](_0x386cc7),{'ok':!0x0,'descriptor':{..._0x4794c9,..._0xf784e1===void 0x0?{}:{'preview':_0xf784e1},'payload':_0x386cc7}};}var q=class extends t[_0x45a4bd(0x206)]{constructor(..._0x1925f2){const _0x5a98f3=_0x45a4bd;super(..._0x1925f2),E(this,'_resources',new Map()),E(this,'_revision$',new n[(_0x5a98f3(0x1b1))](0x0)),E(this,_0x5a98f3(0x25c),this[_0x5a98f3(0x247)][_0x5a98f3(0x268)]()),E(this,_0x5a98f3(0x219),0x0);}[_0x45a4bd(0x246)](_0x3ab3d9,_0x2df33a){const _0x1e9d28=_0x45a4bd;var _0xb5c5e6,_0x42c3e6;let _0x11cc06=[],_0x27ae03=[],_0x3caaaa=[],_0x555ccb=()=>{const _0x4671e2=_0x2ea8;let _0x47f32b=Object[_0x4671e2(0x26f)]([..._0x11cc06]),_0x28877c=Object[_0x4671e2(0x26f)](_0x3caaaa[_0x4671e2(0x200)](L)),_0x4e9877=(0x0,t[_0x4671e2(0x24a)])(()=>{const _0xe6d82a=_0x4671e2;let _0xdf7d03=!0x1;for(let _0x273832 of _0x27ae03)_0xdf7d03=this['_resources']['delete'](_0x273832)||_0xdf7d03;_0xdf7d03&&this[_0xe6d82a(0x247)][_0xe6d82a(0x228)](this['_revision$'][_0xe6d82a(0x238)]+0x1);});return Object[_0x4671e2(0x26f)](Object[_0x4671e2(0x1d2)](_0x4e9877,{'accepted':_0x47f32b,'diagnostics':_0x28877c}));};if(!k[_0x1e9d28(0x1e5)](_0x3ab3d9[_0x1e9d28(0x212)]))return _0x3caaaa[_0x1e9d28(0x1c3)]({'code':_0x1e9d28(0x25d),'message':_0x1e9d28(0x26e)+_0x3ab3d9[_0x1e9d28(0x212)]+_0x1e9d28(0x266),'reference':{'registryId':_0x3ab3d9['registryId']}}),_0x555ccb();let _0xae1235=new Map();for(let _0x595b40 of(_0xb5c5e6=_0x3ab3d9[_0x1e9d28(0x1a2)])==null?[]:_0xb5c5e6)_0xae1235[_0x1e9d28(0x22b)](_0x595b40['id'])?_0x3caaaa[_0x1e9d28(0x1c3)]({'code':_0x1e9d28(0x243),'message':_0x1e9d28(0x1a5)+_0x595b40['id']+'\x22\x20is\x20duplicated\x20in\x20registry\x20\x22'+_0x3ab3d9[_0x1e9d28(0x212)]+'\x22.','reference':{'registryId':_0x3ab3d9[_0x1e9d28(0x212)]}}):_0xae1235[_0x1e9d28(0x210)](_0x595b40['id'],P(_0x595b40));let _0x3f4b88=new Map();for(let _0x7b0848 of(_0x42c3e6=_0x3ab3d9['tags'])==null?[]:_0x42c3e6)_0x3f4b88[_0x1e9d28(0x22b)](_0x7b0848['id'])?_0x3caaaa[_0x1e9d28(0x1c3)]({'code':_0x1e9d28(0x1a7),'message':_0x1e9d28(0x1e4)+_0x7b0848['id']+_0x1e9d28(0x22c)+_0x3ab3d9[_0x1e9d28(0x212)]+'\x22.','reference':{'registryId':_0x3ab3d9[_0x1e9d28(0x212)]}}):_0x3f4b88['set'](_0x7b0848['id'],F(_0x7b0848));for(let _0x2ad5db of _0x3ab3d9[_0x1e9d28(0x1b8)]){var _0x2d9363,_0x45893d;let _0x461e39=Object[_0x1e9d28(0x26f)]({'registryId':_0x3ab3d9['registryId'],'resourceId':_0x2ad5db['id']});if(!k[_0x1e9d28(0x1e5)](_0x2ad5db['id'])){_0x3caaaa[_0x1e9d28(0x1c3)]({'code':'invalid-resource-id','message':_0x1e9d28(0x22f)+_0x2ad5db['id']+'\x22\x20is\x20invalid.','reference':_0x461e39});continue;}let _0x45a33e=M(_0x461e39);if(this[_0x1e9d28(0x1bc)][_0x1e9d28(0x22b)](_0x45a33e)){_0x3caaaa['push']({'code':_0x1e9d28(0x1a3),'message':_0x1e9d28(0x20a)+_0x2ad5db['id']+_0x1e9d28(0x1b6)+_0x3ab3d9[_0x1e9d28(0x212)]+'\x22.','reference':_0x461e39});continue;}if(_0x2ad5db[_0x1e9d28(0x201)]!==void 0x0&&!_0xae1235[_0x1e9d28(0x22b)](_0x2ad5db[_0x1e9d28(0x201)])){_0x3caaaa[_0x1e9d28(0x1c3)]({'code':_0x1e9d28(0x25a),'message':_0x1e9d28(0x20a)+_0x2ad5db['id']+_0x1e9d28(0x25b)+_0x2ad5db[_0x1e9d28(0x201)]+'\x22.','reference':_0x461e39});continue;}let _0xd13920=(_0x2d9363=_0x2ad5db[_0x1e9d28(0x1b4)])==null?void 0x0:_0x2d9363[_0x1e9d28(0x214)](_0x1880ff=>!_0x3f4b88[_0x1e9d28(0x22b)](_0x1880ff));if(_0xd13920!==void 0x0){_0x3caaaa[_0x1e9d28(0x1c3)]({'code':_0x1e9d28(0x1e0),'message':'Resource\x20\x22'+_0x2ad5db['id']+_0x1e9d28(0x24c)+_0xd13920+'\x22.','reference':_0x461e39});continue;}let _0x5355e0=K(_0x2ad5db,_0x3ab3d9,(_0x2df33a==null?void 0x0:_0x2df33a['trusted'])===!0x0);if(!_0x5355e0['ok']){_0x3caaaa[_0x1e9d28(0x1c3)]({'code':_0x5355e0[_0x1e9d28(0x1c1)],'message':'Resource\x20\x22'+_0x2ad5db['id']+_0x1e9d28(0x1de),'reference':_0x461e39});continue;}let _0x104dbe=Object[_0x1e9d28(0x26f)]({..._0x5355e0[_0x1e9d28(0x271)],'name':N(_0x5355e0['descriptor']['name']),'description':_0x5355e0[_0x1e9d28(0x271)]['description']===void 0x0?void 0x0:N(_0x5355e0[_0x1e9d28(0x271)][_0x1e9d28(0x248)]),'tagIds':_0x5355e0[_0x1e9d28(0x271)][_0x1e9d28(0x1b4)]===void 0x0?void 0x0:Object[_0x1e9d28(0x26f)]([..._0x5355e0[_0x1e9d28(0x271)][_0x1e9d28(0x1b4)]]),'keywords':_0x5355e0[_0x1e9d28(0x271)][_0x1e9d28(0x265)]===void 0x0?void 0x0:Object[_0x1e9d28(0x26f)]([..._0x5355e0[_0x1e9d28(0x271)][_0x1e9d28(0x265)]]),'registryId':_0x3ab3d9[_0x1e9d28(0x212)],'defaultLocale':_0x3ab3d9[_0x1e9d28(0x1d3)],'registrationIndex':this['_registrationIndex']++,'group':_0x2ad5db[_0x1e9d28(0x201)]===void 0x0?void 0x0:_0xae1235[_0x1e9d28(0x224)](_0x2ad5db['groupId']),'tags':Object[_0x1e9d28(0x26f)](((_0x45893d=_0x2ad5db[_0x1e9d28(0x1b4)])==null?[]:_0x45893d)[_0x1e9d28(0x200)](_0x147beb=>_0x3f4b88[_0x1e9d28(0x224)](_0x147beb)))});this[_0x1e9d28(0x1bc)][_0x1e9d28(0x210)](_0x45a33e,_0x104dbe),_0x11cc06['push'](_0x461e39),_0x27ae03[_0x1e9d28(0x1c3)](_0x45a33e);}return _0x11cc06[_0x1e9d28(0x229)]>0x0&&this[_0x1e9d28(0x247)][_0x1e9d28(0x228)](this[_0x1e9d28(0x247)][_0x1e9d28(0x238)]+0x1),_0x555ccb();}[_0x45a4bd(0x224)](_0x46ebf1){const _0x2fe58c=_0x45a4bd;return this[_0x2fe58c(0x1bc)][_0x2fe58c(0x224)](M(_0x46ebf1));}[_0x45a4bd(0x1f1)](){const _0x4d0757=_0x45a4bd;return Object[_0x4d0757(0x26f)](Array[_0x4d0757(0x1b3)](this[_0x4d0757(0x1bc)][_0x4d0757(0x1e2)]()));}[_0x45a4bd(0x258)](){const _0x2a6034=_0x45a4bd;this[_0x2a6034(0x1bc)][_0x2a6034(0x1bd)]>0x0&&(this['_resources'][_0x2a6034(0x213)](),this['_revision$']['next'](this[_0x2a6034(0x247)][_0x2a6034(0x238)]+0x1)),this[_0x2a6034(0x247)][_0x2a6034(0x1dd)](),super[_0x2a6034(0x258)]();}};function J(_0x1a3bba,_0x2be864){return function(_0x584be0,_0x3ddd48){_0x2be864(_0x584be0,_0x3ddd48,_0x1a3bba);};}function Y(_0x343fd7,_0x4701f6,_0x4a404d,_0x7f70c5){const _0x3f4cf2=_0x45a4bd;var _0x4a18d1=arguments[_0x3f4cf2(0x229)],_0x22dbaa=_0x4a18d1<0x3?_0x4701f6:_0x7f70c5===null?_0x7f70c5=Object[_0x3f4cf2(0x249)](_0x4701f6,_0x4a404d):_0x7f70c5,_0x4edd68;if(typeof Reflect==_0x3f4cf2(0x259)&&typeof Reflect[_0x3f4cf2(0x1f9)]==_0x3f4cf2(0x237))_0x22dbaa=Reflect[_0x3f4cf2(0x1f9)](_0x343fd7,_0x4701f6,_0x4a404d,_0x7f70c5);else{for(var _0x5a2ac6=_0x343fd7[_0x3f4cf2(0x229)]-0x1;_0x5a2ac6>=0x0;_0x5a2ac6--)(_0x4edd68=_0x343fd7[_0x5a2ac6])&&(_0x22dbaa=(_0x4a18d1<0x3?_0x4edd68(_0x22dbaa):_0x4a18d1>0x3?_0x4edd68(_0x4701f6,_0x4a404d,_0x22dbaa):_0x4edd68(_0x4701f6,_0x4a404d))||_0x22dbaa);}return _0x4a18d1>0x3&&_0x22dbaa&&Object['defineProperty'](_0x4701f6,_0x4a404d,_0x22dbaa),_0x22dbaa;}const X=(0x0,t[_0x45a4bd(0x264)])(_0x45a4bd(0x232));function _0x4b92(){const _0x265fc9=['svg','\x22\x20is\x20already\x20registered\x20in\x20registry\x20\x22','_registry','resources','style','_getLocalizedIndex','getSupportedTypes','_resources','size','label','UNIVER_RESOURCES_PLUGIN','http://www.w3.org/2000/svg','code','1.0.0-insiders.20260717-1e84621','push','_localizedIndexes','30mPPGGi','number','UniverLicensePlugin','_configService','storagePolicy','normalizeResourceSearchText','attributes','add','startsWith','stop','boolean','pluginName','url','assign','defaultLocale','onStarting','delete','version','intrinsicSize','602985bqXRWW','source','20WehzNQ','1586yUTvRR','querySelector','complete','\x22\x20has\x20an\x20invalid\x20or\x20unsafe\x20image\x20source.','mask','unknown-tag','_injector','values','circle','Tag\x20id\x20\x22','test','some','nodeType','replace','Module','defs','isFinite','sort','Inject','stroke','invalid-svg','defineProperty','getAll','trim','NFKC','charCodeAt','type','matchAll','registrationIndex','split','decorate','stringify','rect','searchText','8aaiJBb','desc','registrations','map','groupId','serializeToString','reference','title','1289722kKRizC','Disposable','managed','line','resources.payload-handler-registry.service','Resource\x20\x22','string','1425kaMkjQ','IResourceQueryService','use','1196721YzfrrC','set','order','registryId','clear','find','namespaceURI','_config','locale','query','_registrationIndex','svg-too-large','19128984OetBSy','sanitizeResourceSvg','initialColor','slice','preview','href','colorEditable','call','utf-8','get','ellipse','invalid-image-source','remove','next','length','ResourcePayloadHandlerRegistryService','has','\x22\x20is\x20duplicated\x20in\x20registry\x20\x22','image','invalid-image-payload','Resource\x20id\x20\x22','11LeWfQQ','clip-path','resources.query.service','resourceId','payload','toStringTag','xmlns','function','value','protocol','UNIVER_UNKNOWN','setAttributeNS','fill','DependentOn','RESOURCES_PLUGIN_CONFIG_KEY','http://www.w3.org/2000/xmlns/','IConfigService','unsafe-svg','linearGradient','duplicate-group','image/','1766984jIKjvz','register','_revision$','description','getOwnPropertyDescriptor','toDisposable','parsererror','\x22\x20references\x20unknown\x20tag\x20\x22','keys','svg-too-complex','defaults','documentElement','byteLength','pattern','default','365237myACcr','setConfig','polyline','Plugin','dispose','object','unknown-group','\x22\x20references\x20unknown\x20group\x20\x22','revision$','invalid-registry-id','image/svg+xml','_handlers','payloadTypes','disposeWithMe','forEach','getElementsByTagName','createIdentifier','keywords','\x22\x20is\x20invalid.','data:image/svg+xml;charset=utf-8,','asObservable','symbol','group','resources.config','radialGradient','ResourceRegistryService','Registry\x20id\x20\x22','freeze','text','descriptor','includes','filter','clipPath','height','toLocaleLowerCase','id.viewBox.width.height.x.y.x1.x2.y1.y2.cx.cy.r.rx.ry.d.points.transform.fill.fill-opacity.fill-rule.stroke.stroke-width.stroke-opacity.stroke-linecap.stroke-linejoin.stroke-dasharray.opacity.offset.stop-color.stop-opacity.gradientUnits.gradientTransform.patternUnits.patternContentUnits.clip-path.mask.preserveAspectRatio.role.aria-label.href.xlink:href','dataUrl','width','groups','duplicate-resource','UniverInstanceType','Group\x20id\x20\x22','toPrimitive','duplicate-tag','decode','localName','xlink:href','svgText','http:','join','merge','removeAttributeNode','name','BehaviorSubject','toLowerCase','from','tagIds'];_0x4b92=function(){return _0x265fc9;};return _0x4b92();}function Z(_0x4997b,_0x3ac9c8){const _0x159daa=_0x45a4bd;var _0x20fcc5,_0x5d5ae3;let _0x54dacf=((_0x20fcc5=_0x4997b[_0x159daa(0x211)])==null?_0x4997b[_0x159daa(0x1f7)]:_0x20fcc5)-((_0x5d5ae3=_0x3ac9c8['order'])==null?_0x3ac9c8['registrationIndex']:_0x5d5ae3);if(_0x54dacf!==0x0)return _0x54dacf;let _0x171ddb=_0x4997b[_0x159daa(0x1f7)]-_0x3ac9c8[_0x159daa(0x1f7)];if(_0x171ddb!==0x0)return _0x171ddb;let _0x3f55aa=JSON[_0x159daa(0x1fa)]([_0x4997b[_0x159daa(0x212)],_0x4997b['id']]),_0x1fa733=JSON[_0x159daa(0x1fa)]([_0x3ac9c8[_0x159daa(0x212)],_0x3ac9c8['id']]);return _0x3f55aa<_0x1fa733?-0x1:+(_0x3f55aa>_0x1fa733);}let Q=class extends t[_0x45a4bd(0x206)]{constructor(_0x55630b){const _0x341bdf=_0x45a4bd;super(),this[_0x341bdf(0x1b7)]=_0x55630b,E(this,_0x341bdf(0x1c4),new Map()),this[_0x341bdf(0x261)](this[_0x341bdf(0x1b7)]['revision$']['subscribe'](()=>this[_0x341bdf(0x1c4)][_0x341bdf(0x213)]()));}[_0x45a4bd(0x218)](_0xc06256){const _0x166145=_0x45a4bd;var _0x40ac31;let _0x4fc010=_0xc06256['text']===void 0x0?void 0x0:i(_0xc06256[_0x166145(0x270)]),_0x29bf54=(_0x40ac31=_0xc06256[_0x166145(0x1b4)])==null?[]:_0x40ac31,_0x3d53a2=this[_0x166145(0x1ba)](_0xc06256[_0x166145(0x217)])[_0x166145(0x273)](_0x37e337=>_0x4fc010&&!_0x37e337[_0x166145(0x1fc)]['includes'](_0x4fc010)||_0xc06256['groupId']!==void 0x0&&_0x37e337[_0x166145(0x271)][_0x166145(0x201)]!==_0xc06256[_0x166145(0x201)]||_0x29bf54[_0x166145(0x1e6)](_0xd8ffd6=>{const _0x2556d0=_0x166145;var _0x13de1a;return!((_0x13de1a=_0x37e337['descriptor'][_0x2556d0(0x1b4)])!=null&&_0x13de1a['includes'](_0xd8ffd6));})?!0x1:_0xc06256[_0x166145(0x260)]===void 0x0||_0xc06256['payloadTypes'][_0x166145(0x22b)](_0x37e337[_0x166145(0x271)][_0x166145(0x234)][_0x166145(0x1f5)]));return Object['freeze'](_0x3d53a2);}[_0x45a4bd(0x1ba)](_0x39d1b5){const _0x5efb7d=_0x45a4bd;let _0x29969c=this['_localizedIndexes'][_0x5efb7d(0x224)](_0x39d1b5);if(_0x29969c!==void 0x0)return _0x29969c;let _0x530fa9=this[_0x5efb7d(0x1b7)][_0x5efb7d(0x1f1)]()[_0x5efb7d(0x21e)]()[_0x5efb7d(0x1ec)](Z)[_0x5efb7d(0x200)](_0x939f19=>{const _0x486e61=_0x5efb7d;var _0x477610;let _0x4b77c4=r(_0x939f19[_0x486e61(0x1b0)],_0x39d1b5,_0x939f19[_0x486e61(0x1d3)],_0x939f19['id']),_0x4411cc=_0x939f19['description']===void 0x0?void 0x0:r(_0x939f19[_0x486e61(0x248)],_0x39d1b5,_0x939f19[_0x486e61(0x1d3)],_0x939f19['id']),_0x3ae243=_0x939f19[_0x486e61(0x26a)]===void 0x0?void 0x0:r(_0x939f19[_0x486e61(0x26a)][_0x486e61(0x1be)],_0x39d1b5,_0x939f19[_0x486e61(0x1d3)],_0x939f19[_0x486e61(0x26a)]['id']),_0x3610fd=Object[_0x486e61(0x26f)](_0x939f19['tags'][_0x486e61(0x200)](_0x35fa97=>r(_0x35fa97['label'],_0x39d1b5,_0x939f19['defaultLocale'],_0x35fa97['id']))),_0xefec69=i([_0x4b77c4,_0x4411cc,_0x3ae243,..._0x3610fd,...(_0x477610=_0x939f19['keywords'])==null?[]:_0x477610][_0x486e61(0x273)](_0x808622=>_0x808622!==void 0x0)[_0x486e61(0x1ad)]('\x20'));return Object[_0x486e61(0x26f)]({'reference':Object['freeze']({'registryId':_0x939f19['registryId'],'resourceId':_0x939f19['id']}),'descriptor':_0x939f19,'name':_0x4b77c4,..._0x4411cc===void 0x0?{}:{'description':_0x4411cc},..._0x3ae243===void 0x0?{}:{'groupLabel':_0x3ae243},'tagLabels':_0x3610fd,'searchText':_0xefec69});}),_0x515697=Object[_0x5efb7d(0x26f)](_0x530fa9);return this[_0x5efb7d(0x1c4)]['set'](_0x39d1b5,_0x515697),_0x515697;}};Q=Y([J(0x0,j)],Q);let $=class extends t[_0x45a4bd(0x257)]{constructor(_0x10a5cf=b,_0x51cfbf,_0x22ef29){const _0x433c46=_0x45a4bd;super(),this[_0x433c46(0x216)]=_0x10a5cf,this[_0x433c46(0x1e1)]=_0x51cfbf,this['_configService']=_0x22ef29;let {..._0x415a66}=(0x0,t[_0x433c46(0x1ae)])({},b,this['_config']);this[_0x433c46(0x1c8)][_0x433c46(0x255)](y,_0x415a66);}[_0x45a4bd(0x1d4)](){const _0x3d2be2=_0x45a4bd;var _0x5b8b17;[[j,{'useClass':q}],[X,{'useClass':Q}],[D,{'useClass':O}]][_0x3d2be2(0x262)](_0x1be295=>this['_injector'][_0x3d2be2(0x1cc)](_0x1be295));let _0x526b39=this[_0x3d2be2(0x1e1)][_0x3d2be2(0x224)](j);((_0x5b8b17=this['_config'][_0x3d2be2(0x1ff)])==null?[]:_0x5b8b17)[_0x3d2be2(0x262)](({input:_0x3a802d,options:_0x441a6a})=>{const _0x5b7ccf=_0x3d2be2;this['disposeWithMe'](_0x526b39[_0x5b7ccf(0x246)](_0x3a802d,_0x441a6a));});}};E($,_0x45a4bd(0x1d0),_0x45a4bd(0x1bf)),E($,'packageName',x),E($,_0x45a4bd(0x1d6),S),E($,_0x45a4bd(0x1f5),t[_0x45a4bd(0x1a4)][_0x45a4bd(0x23a)]),$=Y([(0x0,t[_0x45a4bd(0x23d)])(e[_0x45a4bd(0x1c7)]),J(0x1,(0x0,t[_0x45a4bd(0x1ed)])(t['Injector'])),J(0x2,t[_0x45a4bd(0x240)])],$),exports['IResourcePayloadHandlerRegistryService']=D,exports[_0x45a4bd(0x20d)]=X,exports['IResourceRegistryService']=j,exports[_0x45a4bd(0x23e)]=y,exports[_0x45a4bd(0x22a)]=O,Object[_0x45a4bd(0x1f0)](exports,'ResourceQueryService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x45a4bd(0x26d)]=q,Object[_0x45a4bd(0x1f0)](exports,'UniverResourcesPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x45a4bd(0x1ca)]=i,exports['resolveResourceLocalizedText']=r,exports[_0x45a4bd(0x21c)]=v;
@@ -0,0 +1 @@
1
+ const _0x80e5b4=_0x5698;function _0x7ec0(){const _0x14a9e6=['remove','pluginName','delete','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','invalid-image-payload','normalize','http://www.w3.org/2000/svg','keys','width','image/','preview','Registry\x20id\x20\x22','asObservable','clipPath','exec','setAttributeNS','slice','svg','symbol','number','has','href','defaultLocale','order','getOwnPropertyDescriptor','_injector','parsererror','2500484DzPpwg','dataUrl','sort','packageName','clear','_localizedIndexes','5948847gavESj','initialColor','length','dispose','registryId','push','map','payloadTypes','childNodes','intrinsicSize','NFKC','15VnWZYp','id.viewBox.width.height.x.y.x1.x2.y1.y2.cx.cy.r.rx.ry.d.points.transform.fill.fill-opacity.fill-rule.stroke.stroke-width.stroke-opacity.stroke-linecap.stroke-linejoin.stroke-dasharray.opacity.offset.stop-color.stop-opacity.gradientUnits.gradientTransform.patternUnits.patternContentUnits.clip-path.mask.preserveAspectRatio.role.aria-label.href.xlink:href','_configService','resources.query.service','source','UNIVER_UNKNOWN','desc','\x22\x20is\x20duplicated\x20in\x20registry\x20\x22','toLowerCase','style','982672McSmhl','tagIds','matchAll','isFinite','join','url','mask','unsafe-svg','revision$','decode','stroke','unknown-tag','startsWith','label','circle','string','next','\x22\x20is\x20already\x20registered\x20in\x20registry\x20\x22','@univerjs-pro/resources','defaults','descriptor','fill','call','attributes','svg-too-complex','height','registrationIndex','trim','duplicate-tag','_revision$','invalid-svg','doctype','http://www.w3.org/2000/xmlns/','\x22\x20references\x20unknown\x20group\x20\x22','boolean','_handlers','defs','query','image/svg+xml','3349737AUZxYJ','managed','svg-too-large','locale','getElementsByTagName','invalid-resource-id','assign','toPrimitive','stringify','xmlns','values','invalid-registry-id','set','querySelector','some','replace','object','colorEditable','function','code','toLocaleLowerCase','removeAttributeNode','\x22\x20is\x20invalid.','includes','5967584BJiYTE','getAll','7cBKJXA','defineProperty','line','path','keywords','filter','split','value','duplicate-resource','\x22\x20references\x20unknown\x20tag\x20\x22','Resource\x20\x22','_registry','getSupportedTypes','nodeType','base64','resourceId','1.0.0-insiders.20260717-1e84621','storagePolicy','unknown-group','setConfig','from','invalid-image-source','forEach','Tag\x20id\x20\x22','name','register','use','ellipse','disposeWithMe','namespaceURI','UNIVER_RESOURCES_PLUGIN','prototype','freeze','get','decorate','svgText','clip-path','reference','charCodeAt','group','parseFromString','tags','_resources','groups','description','test','_getLocalizedIndex','pattern','iterator','text','3730866NWfytq','groupId','_config','payload','subscribe','type','image','resources.registry.service','byteLength','resources.payload-handler-registry.service','size','855780eOnnvB','documentElement'];_0x7ec0=function(){return _0x14a9e6;};return _0x7ec0();}(function(_0x2d948d,_0x2c9499){const _0x5d08b3=_0x5698,_0x154b49=_0x2d948d();while(!![]){try{const _0x4711e3=parseInt(_0x5d08b3(0x18d))/0x1+-parseInt(_0x5d08b3(0x1aa))/0x2+parseInt(_0x5d08b3(0x1ec))/0x3+-parseInt(_0x5d08b3(0x1c5))/0x4*(-parseInt(_0x5d08b3(0x1bb))/0x5)+-parseInt(_0x5d08b3(0x182))/0x6*(-parseInt(_0x5d08b3(0x150))/0x7)+-parseInt(_0x5d08b3(0x14e))/0x8+-parseInt(_0x5d08b3(0x1b0))/0x9;if(_0x4711e3===_0x2c9499)break;else _0x154b49['push'](_0x154b49['shift']());}catch(_0x4acc0c){_0x154b49['push'](_0x154b49['shift']());}}}(_0x7ec0,0xa48d1));import{UniverLicensePlugin as _0x18de0a}from'@univerjs-pro/license';import{DependentOn as _0x200e0a,Disposable as _0x1ea227,IConfigService as _0x1313c4,Inject as _0x5b4d4b,Injector as _0x5d0d66,Plugin as _0x1ce828,UniverInstanceType as _0x66b1b7,createIdentifier as _0x4b45a9,merge as _0x4e1d12,toDisposable as _0x1c7c16}from'@univerjs/core';import{BehaviorSubject as _0x347645}from'rxjs';function f(_0x2305ae,_0x865675,_0x487fc6,_0x3ab052){const _0x3722b5=_0x5698;var _0xe4ee1c,_0x420973,_0xe76478;return typeof _0x2305ae==_0x3722b5(0x1d4)?_0x2305ae:(_0xe4ee1c=(_0x420973=(_0xe76478=_0x2305ae[_0x865675])==null?_0x487fc6?_0x2305ae[_0x487fc6]:void 0x0:_0xe76478)==null?Object[_0x3722b5(0x140)](_0x2305ae)[0x0]:_0x420973)==null?_0x3ab052:_0xe4ee1c;}function p(_0xdcd67){const _0x2e6b05=_0x5698;return _0xdcd67[_0x2e6b05(0x194)](_0x2e6b05(0x1ba))[_0x2e6b05(0x14a)]()[_0x2e6b05(0x1e0)]()[_0x2e6b05(0x145)](/\s+/g,'\x20');}const m=_0x80e5b4(0x195),ee=new Set([_0x80e5b4(0x1a0),'g',_0x80e5b4(0x153),'rect',_0x80e5b4(0x1d3),_0x80e5b4(0x16b),_0x80e5b4(0x152),'polyline','polygon',_0x80e5b4(0x1e9),'linearGradient','radialGradient','stop',_0x80e5b4(0x19c),_0x80e5b4(0x1cb),_0x80e5b4(0x17f),'title',_0x80e5b4(0x1c1),_0x80e5b4(0x1a1),_0x80e5b4(0x16a)]),h=new Set(_0x80e5b4(0x1bc)[_0x80e5b4(0x156)]('.')),g=/<!--[\s\S]*?-->|<!\[CDATA\[[\s\S]*?\]\]>|<\?[\s\S]*?\?>/g,_=/<(?![!?/])/g,v=/url\s*\(/i,y=/url\s*\(\s*#[A-Za-z0-9_.:-]+\s*\)/gi,te=/^#[A-Za-z0-9_.:-]+$/,ne=new Set([_0x80e5b4(0x1da),_0x80e5b4(0x1cf),_0x80e5b4(0x174),_0x80e5b4(0x1cb)]);function re(_0xb9d42d){const _0x2505b5=_0x80e5b4;let _0x5de237=0x0;for(let _0xf9b458 of _0xb9d42d['replace'](g,'')[_0x2505b5(0x1c7)](_))if(_0x5de237+=0x1,_0x5de237>0x2710)return!0x0;return!0x1;}function b(_0x3bde06){const _0x5c8cca=_0x80e5b4;return v[_0x5c8cca(0x17d)](_0x3bde06)?v['test'](_0x3bde06['replace'](y,'')):!0x1;}function x(_0x20d30f){const _0x57a9af=_0x80e5b4;for(let _0x1fddc8 of Array['from'](_0x20d30f[_0x57a9af(0x1dc)])){let _0x293b49=_0x1fddc8[_0x57a9af(0x168)],_0x424f7b=_0x293b49[_0x57a9af(0x1c3)](),_0x2abe35=_0x424f7b===_0x57a9af(0x1a4)||_0x424f7b==='xlink:href';(_0x424f7b['startsWith']('on')||_0x424f7b===_0x57a9af(0x1c4)||!h[_0x57a9af(0x1a3)](_0x293b49)||_0x2abe35&&!te[_0x57a9af(0x17d)](_0x1fddc8['value'])||ne[_0x57a9af(0x1a3)](_0x424f7b)&&_0x1fddc8['value'][_0x57a9af(0x14d)]('\x5c')||b(_0x1fddc8[_0x57a9af(0x157)]))&&_0x20d30f[_0x57a9af(0x14b)](_0x1fddc8);}}function S(_0x313322){const _0x17673e=_0x80e5b4;for(let _0x2869e1 of Array[_0x17673e(0x164)](_0x313322[_0x17673e(0x1b8)]))_0x2869e1[_0x17673e(0x15d)]===0x7||_0x2869e1[_0x17673e(0x15d)]===0x8?_0x2869e1[_0x17673e(0x18f)]():S(_0x2869e1);}function C(_0x4e15f6){const _0x419a98=_0x80e5b4;if(new TextEncoder()['encode'](_0x4e15f6)[_0x419a98(0x18a)]>0x100000)return{'ok':!0x1,'code':_0x419a98(0x1ee)};if(re(_0x4e15f6))return{'ok':!0x1,'code':_0x419a98(0x1dd)};if(typeof DOMParser>'u'||typeof XMLSerializer>'u')return{'ok':!0x1,'code':_0x419a98(0x1cc)};try{let _0x175b3a=new DOMParser()[_0x419a98(0x178)](_0x4e15f6,_0x419a98(0x1eb)),_0x554fa2=_0x175b3a[_0x419a98(0x18e)];if(_0x554fa2['localName']!==_0x419a98(0x1a0)||_0x175b3a[_0x419a98(0x143)](_0x419a98(0x1a9))||_0x554fa2[_0x419a98(0x16d)]!==null&&_0x554fa2[_0x419a98(0x16d)]!==''&&_0x554fa2['namespaceURI']!==m)return{'ok':!0x1,'code':_0x419a98(0x1e3)};if(_0x175b3a[_0x419a98(0x1e4)])return{'ok':!0x1,'code':_0x419a98(0x1cc)};S(_0x175b3a);for(let _0x24d97c of Array[_0x419a98(0x164)](_0x175b3a[_0x419a98(0x1f0)]('*'))){if(!ee[_0x419a98(0x1a3)](_0x24d97c['localName'])){_0x24d97c[_0x419a98(0x18f)]();continue;}x(_0x24d97c);}return _0x554fa2['namespaceURI']||_0x554fa2[_0x419a98(0x19e)](_0x419a98(0x1e5),_0x419a98(0x13f),m),{'ok':!0x0,'value':new XMLSerializer()['serializeToString'](_0x175b3a)};}catch{return{'ok':!0x1,'code':'invalid-svg'};}}const w='resources.config',T={};var ie=_0x80e5b4(0x1d7),ae=_0x80e5b4(0x160);function E(_0x583df7){'@babel/helpers - typeof';const _0xf3e69a=_0x80e5b4;return E=typeof Symbol==_0xf3e69a(0x148)&&typeof Symbol[_0xf3e69a(0x180)]=='symbol'?function(_0x28f67b){return typeof _0x28f67b;}:function(_0x559c7b){const _0x27b42c=_0xf3e69a;return _0x559c7b&&typeof Symbol==_0x27b42c(0x148)&&_0x559c7b['constructor']===Symbol&&_0x559c7b!==Symbol[_0x27b42c(0x16f)]?_0x27b42c(0x1a1):typeof _0x559c7b;},E(_0x583df7);}function D(_0x5da597,_0x1aa4d5){const _0xd79e24=_0x80e5b4;if(E(_0x5da597)!=_0xd79e24(0x146)||!_0x5da597)return _0x5da597;var _0x1e556e=_0x5da597[Symbol[_0xd79e24(0x1f3)]];if(_0x1e556e!==void 0x0){var _0xbfa239=_0x1e556e[_0xd79e24(0x1db)](_0x5da597,_0x1aa4d5||'default');if(E(_0xbfa239)!=_0xd79e24(0x146))return _0xbfa239;throw TypeError(_0xd79e24(0x192));}return(_0x1aa4d5===_0xd79e24(0x1d4)?String:Number)(_0x5da597);}function O(_0x21f240){const _0x84e168=_0x80e5b4;var _0x62da72=D(_0x21f240,_0x84e168(0x1d4));return E(_0x62da72)==_0x84e168(0x1a1)?_0x62da72:_0x62da72+'';}function k(_0x3790c8,_0x4e97ff,_0x35e768){const _0x3b4e6e=_0x80e5b4;return(_0x4e97ff=O(_0x4e97ff))in _0x3790c8?Object[_0x3b4e6e(0x151)](_0x3790c8,_0x4e97ff,{'value':_0x35e768,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3790c8[_0x4e97ff]=_0x35e768,_0x3790c8;}const A=_0x4b45a9(_0x80e5b4(0x18b));var j=class{constructor(){k(this,'_handlers',new Map());}[_0x80e5b4(0x169)](_0x5ccf52){const _0x556e44=_0x80e5b4;let _0x1417b7=_0x5ccf52[_0x556e44(0x187)];if(!this[_0x556e44(0x1e8)][_0x556e44(0x1a3)](_0x1417b7))return this['_handlers'][_0x556e44(0x142)](_0x1417b7,_0x5ccf52),_0x1c7c16(()=>{const _0x4cd19a=_0x556e44;this['_handlers']['get'](_0x1417b7)===_0x5ccf52&&this[_0x4cd19a(0x1e8)][_0x4cd19a(0x191)](_0x1417b7);});}[_0x80e5b4(0x171)](_0x23bbd0){const _0xf8d405=_0x80e5b4;return this[_0xf8d405(0x1e8)]['get'](_0x23bbd0);}[_0x80e5b4(0x15c)](){const _0xbff959=_0x80e5b4;return new Set(this[_0xbff959(0x1e8)][_0xbff959(0x196)]());}};const M=/^[A-Za-z0-9][A-Za-z0-9._:-]*$/,N=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,P=_0x4b45a9(_0x80e5b4(0x189));function F(_0x3eb7bb){const _0x2e6f8f=_0x80e5b4;return JSON[_0x2e6f8f(0x1f4)]([_0x3eb7bb[_0x2e6f8f(0x1b4)],_0x3eb7bb[_0x2e6f8f(0x15f)]]);}function I(_0x3357da){const _0x1e9c34=_0x80e5b4;return typeof _0x3357da==_0x1e9c34(0x1d4)?_0x3357da:Object[_0x1e9c34(0x170)]({..._0x3357da});}function L(_0x40b0f7){const _0x4c0afe=_0x80e5b4;return Object[_0x4c0afe(0x170)]({'id':_0x40b0f7['id'],'label':I(_0x40b0f7[_0x4c0afe(0x1d2)])});}function R(_0x3c8568){const _0x1ebf2d=_0x80e5b4;return Object[_0x1ebf2d(0x170)]({'id':_0x3c8568['id'],'label':I(_0x3c8568['label'])});}function z(_0x4ec960){const _0x374cd8=_0x80e5b4;return Object['freeze']({'type':_0x4ec960[_0x374cd8(0x187)],'value':_0x4ec960[_0x374cd8(0x157)]});}function B(_0x541b96){const _0x2f1825=_0x80e5b4;return Object[_0x2f1825(0x170)]({..._0x541b96,..._0x541b96[_0x2f1825(0x175)]===void 0x0?{}:{'reference':Object['freeze']({..._0x541b96[_0x2f1825(0x175)]})}});}function _0x5698(_0x783d6c,_0x421b7a){_0x783d6c=_0x783d6c-0x13f;const _0x7ec016=_0x7ec0();let _0x569891=_0x7ec016[_0x783d6c];return _0x569891;}function V(_0x51a4aa){const _0xfe6202=_0x80e5b4;try{let _0x3ddb51=atob(_0x51a4aa),_0x322531=Uint8Array[_0xfe6202(0x164)](_0x3ddb51,_0xa17e31=>_0xa17e31[_0xfe6202(0x176)](0x0));return new TextDecoder('utf-8',{'fatal':!0x0})[_0xfe6202(0x1ce)](_0x322531);}catch{return;}}function H(_0x2dab4a){const _0x3636af=_0x80e5b4;let [_0x5f1d4a,_0x9cf335,..._0xa67866]=_0x2dab4a['trim']()[_0x3636af(0x156)]('/');if(!(_0xa67866[_0x3636af(0x1b2)]>0x0||!N[_0x3636af(0x17d)](_0x5f1d4a)||!N['test'](_0x9cf335)))return _0x5f1d4a[_0x3636af(0x1c3)]()+'/'+_0x9cf335[_0x3636af(0x1c3)]();}function U(_0x381bf6,_0x2d00e){const _0x29c8ea=_0x80e5b4;let _0x34dcc1=/^data:([^;,]+)((?:;[^,]*)*),(.*)$/is[_0x29c8ea(0x19d)](_0x381bf6[_0x29c8ea(0x157)]),_0x2a8451=_0x34dcc1&&H(_0x34dcc1[0x1]);if(!_0x34dcc1||!(_0x2a8451!=null&&_0x2a8451[_0x29c8ea(0x1d1)](_0x29c8ea(0x198))))return{'ok':!0x1,'code':_0x29c8ea(0x165)};if(_0x2a8451!=='image/svg+xml'||_0x2d00e)return{'ok':!0x0,'source':_0x381bf6};let _0xc46ce=_0x34dcc1[0x2][_0x29c8ea(0x156)](';')[_0x29c8ea(0x155)](Boolean),_0x588db2=_0x34dcc1[0x3],_0x4be471;if(_0xc46ce['some'](_0x22cd21=>_0x22cd21[_0x29c8ea(0x1c3)]()===_0x29c8ea(0x15e)))_0x4be471=V(_0x588db2);else try{_0x4be471=decodeURIComponent(_0x588db2);}catch{_0x4be471=void 0x0;}if(_0x4be471===void 0x0)return{'ok':!0x1,'code':_0x29c8ea(0x165)};let _0x12ca53=C(_0x4be471);return _0x12ca53['ok']?{'ok':!0x0,'source':{'type':_0x29c8ea(0x1ab),'value':'data:image/svg+xml;charset=utf-8,'+encodeURIComponent(_0x12ca53[_0x29c8ea(0x157)])}}:{'ok':!0x1,'code':_0x29c8ea(0x1cc)};}function W(_0x4f19a1,_0x270565){const _0x21cbc1=_0x80e5b4;if(_0x4f19a1[_0x21cbc1(0x187)]===_0x21cbc1(0x1ca))try{let _0x105bc9=new URL(_0x4f19a1[_0x21cbc1(0x157)])['protocol'];return['http:','https:','blob:'][_0x21cbc1(0x14d)](_0x105bc9)?{'ok':!0x0,'source':_0x4f19a1}:{'ok':!0x1,'code':_0x21cbc1(0x165)};}catch{return{'ok':!0x1,'code':_0x21cbc1(0x165)};}if(_0x4f19a1[_0x21cbc1(0x187)]==='dataUrl')return U(_0x4f19a1,_0x270565);if(_0x4f19a1[_0x21cbc1(0x187)]==='svgText'){if(_0x270565)return{'ok':!0x0,'source':_0x4f19a1};let _0x2a4a61=C(_0x4f19a1['value']);return _0x2a4a61['ok']?{'ok':!0x0,'source':{'type':'svgText','value':_0x2a4a61['value']}}:{'ok':!0x1,'code':'unsafe-svg'};}return{'ok':!0x1,'code':_0x21cbc1(0x165)};}function G(_0x15b53e){const _0x3718fc=_0x80e5b4;if(typeof _0x15b53e!=_0x3718fc(0x146)||!_0x15b53e)return!0x1;let _0x5b49e0=_0x15b53e;return(_0x5b49e0[_0x3718fc(0x187)]==='url'||_0x5b49e0[_0x3718fc(0x187)]===_0x3718fc(0x1ab)||_0x5b49e0[_0x3718fc(0x187)]===_0x3718fc(0x173))&&typeof _0x5b49e0[_0x3718fc(0x157)]==_0x3718fc(0x1d4);}function K(_0xd7066f){const _0x325169=_0x80e5b4;return _0xd7066f===void 0x0||_0xd7066f===_0x325169(0x175)||_0xd7066f===_0x325169(0x1ed);}function q(_0x17b47c){const _0x167569=_0x80e5b4;if(_0x17b47c===void 0x0)return!0x0;if(typeof _0x17b47c!=_0x167569(0x146)||!_0x17b47c)return!0x1;let _0x350b2c=_0x17b47c;return typeof _0x350b2c[_0x167569(0x197)]=='number'&&Number['isFinite'](_0x350b2c['width'])&&_0x350b2c[_0x167569(0x197)]>0x0&&typeof _0x350b2c[_0x167569(0x1de)]==_0x167569(0x1a2)&&Number[_0x167569(0x1c8)](_0x350b2c[_0x167569(0x1de)])&&_0x350b2c[_0x167569(0x1de)]>0x0;}function oe(_0x588a37,_0x4255ee){const _0x20a4ed=_0x80e5b4;return!K(_0x588a37[_0x20a4ed(0x161)])||!K(_0x4255ee)||_0x588a37['colorEditable']!==void 0x0&&typeof _0x588a37['colorEditable']!=_0x20a4ed(0x1e7)||!q(_0x588a37[_0x20a4ed(0x1b9)])?!0x1:_0x588a37['initialColor']===void 0x0||typeof _0x588a37[_0x20a4ed(0x1b1)]=='string';}function se(_0x49de7c,_0x2617c5,_0x2a3108){const _0xb38b06=_0x80e5b4;var _0x1c2584,_0x3df30f,_0x40024a,_0x8c7f65,_0x578307;let _0x41a152;if(_0x49de7c[_0xb38b06(0x199)]!==void 0x0){if(!G(_0x49de7c[_0xb38b06(0x199)]))return{'ok':!0x1,'code':_0xb38b06(0x165)};let _0x191353=W(_0x49de7c[_0xb38b06(0x199)],_0x2a3108);if(!_0x191353['ok'])return _0x191353;_0x41a152=z(_0x191353['source']);}let _0x2f37f0=_0x49de7c[_0xb38b06(0x185)];if(typeof _0x2f37f0!=_0xb38b06(0x146)||!_0x2f37f0||typeof _0x2f37f0[_0xb38b06(0x187)]!=_0xb38b06(0x1d4))return{'ok':!0x1,'code':_0xb38b06(0x193)};let _0xb560a6=_0x49de7c;if(_0x2f37f0[_0xb38b06(0x187)]!==_0xb38b06(0x188))return{'ok':!0x0,'descriptor':_0x41a152===void 0x0?{..._0xb560a6}:{..._0xb560a6,'preview':_0x41a152}};let _0x2db5b2=_0x2f37f0;if(!G(_0x2db5b2[_0xb38b06(0x1bf)])||!oe(_0x2db5b2,(_0x1c2584=_0x2617c5[_0xb38b06(0x1d8)])==null?void 0x0:_0x1c2584[_0xb38b06(0x161)]))return{'ok':!0x1,'code':_0xb38b06(0x193)};let _0x4a5f97=(_0x3df30f=(_0x40024a=_0x2db5b2[_0xb38b06(0x161)])==null?(_0x8c7f65=_0x2617c5[_0xb38b06(0x1d8)])==null?void 0x0:_0x8c7f65[_0xb38b06(0x161)]:_0x40024a)==null?_0xb38b06(0x175):_0x3df30f,_0xd6ea60=W(_0x2db5b2[_0xb38b06(0x1bf)],_0x2a3108);if(!_0xd6ea60['ok'])return _0xd6ea60;let _0x5006ec={..._0x2db5b2,'source':z(_0xd6ea60['source']),..._0x2db5b2[_0xb38b06(0x1b9)]===void 0x0?{}:{'intrinsicSize':Object['freeze']({..._0x2db5b2[_0xb38b06(0x1b9)]})},'storagePolicy':_0x4a5f97,'colorEditable':(_0x578307=_0x2db5b2[_0xb38b06(0x147)])==null?!0x1:_0x578307};return Object['freeze'](_0x5006ec),{'ok':!0x0,'descriptor':{..._0xb560a6,..._0x41a152===void 0x0?{}:{'preview':_0x41a152},'payload':_0x5006ec}};}var J=class extends _0x1ea227{constructor(..._0x1f0a9f){const _0x47f994=_0x80e5b4;super(..._0x1f0a9f),k(this,_0x47f994(0x17a),new Map()),k(this,_0x47f994(0x1e2),new _0x347645(0x0)),k(this,_0x47f994(0x1cd),this[_0x47f994(0x1e2)][_0x47f994(0x19b)]()),k(this,'_registrationIndex',0x0);}[_0x80e5b4(0x169)](_0x453338,_0x31c1a1){const _0x62c2a3=_0x80e5b4;var _0x12fbb1,_0x47ea5b;let _0x189cbe=[],_0x456270=[],_0xbda217=[],_0x143887=()=>{const _0x4c0243=_0x5698;let _0x278407=Object['freeze']([..._0x189cbe]),_0x7deca5=Object[_0x4c0243(0x170)](_0xbda217[_0x4c0243(0x1b6)](B)),_0x5af77c=_0x1c7c16(()=>{const _0x14f972=_0x4c0243;let _0x2bfc73=!0x1;for(let _0x5441d3 of _0x456270)_0x2bfc73=this[_0x14f972(0x17a)]['delete'](_0x5441d3)||_0x2bfc73;_0x2bfc73&&this['_revision$'][_0x14f972(0x1d5)](this[_0x14f972(0x1e2)]['value']+0x1);});return Object[_0x4c0243(0x170)](Object[_0x4c0243(0x1f2)](_0x5af77c,{'accepted':_0x278407,'diagnostics':_0x7deca5}));};if(!M['test'](_0x453338[_0x62c2a3(0x1b4)]))return _0xbda217['push']({'code':_0x62c2a3(0x141),'message':_0x62c2a3(0x19a)+_0x453338['registryId']+_0x62c2a3(0x14c),'reference':{'registryId':_0x453338[_0x62c2a3(0x1b4)]}}),_0x143887();let _0x1943c2=new Map();for(let _0x25d66f of(_0x12fbb1=_0x453338[_0x62c2a3(0x17b)])==null?[]:_0x12fbb1)_0x1943c2[_0x62c2a3(0x1a3)](_0x25d66f['id'])?_0xbda217[_0x62c2a3(0x1b5)]({'code':'duplicate-group','message':'Group\x20id\x20\x22'+_0x25d66f['id']+'\x22\x20is\x20duplicated\x20in\x20registry\x20\x22'+_0x453338[_0x62c2a3(0x1b4)]+'\x22.','reference':{'registryId':_0x453338['registryId']}}):_0x1943c2['set'](_0x25d66f['id'],L(_0x25d66f));let _0x5ba747=new Map();for(let _0x13a618 of(_0x47ea5b=_0x453338[_0x62c2a3(0x179)])==null?[]:_0x47ea5b)_0x5ba747[_0x62c2a3(0x1a3)](_0x13a618['id'])?_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x1e1),'message':_0x62c2a3(0x167)+_0x13a618['id']+_0x62c2a3(0x1c2)+_0x453338['registryId']+'\x22.','reference':{'registryId':_0x453338[_0x62c2a3(0x1b4)]}}):_0x5ba747[_0x62c2a3(0x142)](_0x13a618['id'],R(_0x13a618));for(let _0x3e9874 of _0x453338['resources']){var _0x231c7f,_0xabec67;let _0x32cddc=Object[_0x62c2a3(0x170)]({'registryId':_0x453338['registryId'],'resourceId':_0x3e9874['id']});if(!M[_0x62c2a3(0x17d)](_0x3e9874['id'])){_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x1f1),'message':'Resource\x20id\x20\x22'+_0x3e9874['id']+_0x62c2a3(0x14c),'reference':_0x32cddc});continue;}let _0x108d33=F(_0x32cddc);if(this[_0x62c2a3(0x17a)][_0x62c2a3(0x1a3)](_0x108d33)){_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x158),'message':'Resource\x20\x22'+_0x3e9874['id']+_0x62c2a3(0x1d6)+_0x453338[_0x62c2a3(0x1b4)]+'\x22.','reference':_0x32cddc});continue;}if(_0x3e9874[_0x62c2a3(0x183)]!==void 0x0&&!_0x1943c2[_0x62c2a3(0x1a3)](_0x3e9874[_0x62c2a3(0x183)])){_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x162),'message':_0x62c2a3(0x15a)+_0x3e9874['id']+_0x62c2a3(0x1e6)+_0x3e9874[_0x62c2a3(0x183)]+'\x22.','reference':_0x32cddc});continue;}let _0x55bf48=(_0x231c7f=_0x3e9874[_0x62c2a3(0x1c6)])==null?void 0x0:_0x231c7f['find'](_0x4992b9=>!_0x5ba747[_0x62c2a3(0x1a3)](_0x4992b9));if(_0x55bf48!==void 0x0){_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x1d0),'message':'Resource\x20\x22'+_0x3e9874['id']+_0x62c2a3(0x159)+_0x55bf48+'\x22.','reference':_0x32cddc});continue;}let _0x364216=se(_0x3e9874,_0x453338,(_0x31c1a1==null?void 0x0:_0x31c1a1['trusted'])===!0x0);if(!_0x364216['ok']){_0xbda217['push']({'code':_0x364216[_0x62c2a3(0x149)],'message':_0x62c2a3(0x15a)+_0x3e9874['id']+'\x22\x20has\x20an\x20invalid\x20or\x20unsafe\x20image\x20source.','reference':_0x32cddc});continue;}let _0x1c21c1=Object['freeze']({..._0x364216[_0x62c2a3(0x1d9)],'name':I(_0x364216[_0x62c2a3(0x1d9)][_0x62c2a3(0x168)]),'description':_0x364216[_0x62c2a3(0x1d9)]['description']===void 0x0?void 0x0:I(_0x364216['descriptor'][_0x62c2a3(0x17c)]),'tagIds':_0x364216['descriptor'][_0x62c2a3(0x1c6)]===void 0x0?void 0x0:Object['freeze']([..._0x364216['descriptor'][_0x62c2a3(0x1c6)]]),'keywords':_0x364216[_0x62c2a3(0x1d9)]['keywords']===void 0x0?void 0x0:Object[_0x62c2a3(0x170)]([..._0x364216[_0x62c2a3(0x1d9)][_0x62c2a3(0x154)]]),'registryId':_0x453338[_0x62c2a3(0x1b4)],'defaultLocale':_0x453338[_0x62c2a3(0x1a5)],'registrationIndex':this['_registrationIndex']++,'group':_0x3e9874[_0x62c2a3(0x183)]===void 0x0?void 0x0:_0x1943c2[_0x62c2a3(0x171)](_0x3e9874[_0x62c2a3(0x183)]),'tags':Object[_0x62c2a3(0x170)](((_0xabec67=_0x3e9874[_0x62c2a3(0x1c6)])==null?[]:_0xabec67)[_0x62c2a3(0x1b6)](_0x3f8f36=>_0x5ba747[_0x62c2a3(0x171)](_0x3f8f36)))});this[_0x62c2a3(0x17a)][_0x62c2a3(0x142)](_0x108d33,_0x1c21c1),_0x189cbe[_0x62c2a3(0x1b5)](_0x32cddc),_0x456270['push'](_0x108d33);}return _0x189cbe[_0x62c2a3(0x1b2)]>0x0&&this[_0x62c2a3(0x1e2)][_0x62c2a3(0x1d5)](this['_revision$']['value']+0x1),_0x143887();}[_0x80e5b4(0x171)](_0x16ec6c){const _0x343ec2=_0x80e5b4;return this[_0x343ec2(0x17a)][_0x343ec2(0x171)](F(_0x16ec6c));}[_0x80e5b4(0x14f)](){const _0xda7003=_0x80e5b4;return Object[_0xda7003(0x170)](Array[_0xda7003(0x164)](this[_0xda7003(0x17a)]['values']()));}['dispose'](){const _0x4275a3=_0x80e5b4;this[_0x4275a3(0x17a)][_0x4275a3(0x18c)]>0x0&&(this['_resources'][_0x4275a3(0x1ae)](),this[_0x4275a3(0x1e2)][_0x4275a3(0x1d5)](this[_0x4275a3(0x1e2)]['value']+0x1)),this['_revision$']['complete'](),super[_0x4275a3(0x1b3)]();}};function Y(_0x2a50b2,_0x52472a){return function(_0x181e52,_0x4ec845){_0x52472a(_0x181e52,_0x4ec845,_0x2a50b2);};}function X(_0xe5f485,_0x4e223c,_0x25e307,_0x170bb8){const _0x2688e5=_0x80e5b4;var _0x35e3f5=arguments[_0x2688e5(0x1b2)],_0x19545=_0x35e3f5<0x3?_0x4e223c:_0x170bb8===null?_0x170bb8=Object[_0x2688e5(0x1a7)](_0x4e223c,_0x25e307):_0x170bb8,_0x169a84;if(typeof Reflect==_0x2688e5(0x146)&&typeof Reflect[_0x2688e5(0x172)]=='function')_0x19545=Reflect['decorate'](_0xe5f485,_0x4e223c,_0x25e307,_0x170bb8);else{for(var _0x34dc2f=_0xe5f485[_0x2688e5(0x1b2)]-0x1;_0x34dc2f>=0x0;_0x34dc2f--)(_0x169a84=_0xe5f485[_0x34dc2f])&&(_0x19545=(_0x35e3f5<0x3?_0x169a84(_0x19545):_0x35e3f5>0x3?_0x169a84(_0x4e223c,_0x25e307,_0x19545):_0x169a84(_0x4e223c,_0x25e307))||_0x19545);}return _0x35e3f5>0x3&&_0x19545&&Object['defineProperty'](_0x4e223c,_0x25e307,_0x19545),_0x19545;}const Z=_0x4b45a9(_0x80e5b4(0x1be));function ce(_0x130943,_0x4ee07a){const _0x3fc09f=_0x80e5b4;var _0xd9f009,_0x49880e;let _0xb3db0b=((_0xd9f009=_0x130943['order'])==null?_0x130943[_0x3fc09f(0x1df)]:_0xd9f009)-((_0x49880e=_0x4ee07a[_0x3fc09f(0x1a6)])==null?_0x4ee07a['registrationIndex']:_0x49880e);if(_0xb3db0b!==0x0)return _0xb3db0b;let _0x5d3f4e=_0x130943[_0x3fc09f(0x1df)]-_0x4ee07a[_0x3fc09f(0x1df)];if(_0x5d3f4e!==0x0)return _0x5d3f4e;let _0x1212fc=JSON[_0x3fc09f(0x1f4)]([_0x130943[_0x3fc09f(0x1b4)],_0x130943['id']]),_0x4f7da9=JSON[_0x3fc09f(0x1f4)]([_0x4ee07a[_0x3fc09f(0x1b4)],_0x4ee07a['id']]);return _0x1212fc<_0x4f7da9?-0x1:+(_0x1212fc>_0x4f7da9);}let Q=class extends _0x1ea227{constructor(_0x340c74){const _0x3d4507=_0x80e5b4;super(),this[_0x3d4507(0x15b)]=_0x340c74,k(this,_0x3d4507(0x1af),new Map()),this['disposeWithMe'](this['_registry']['revision$'][_0x3d4507(0x186)](()=>this[_0x3d4507(0x1af)][_0x3d4507(0x1ae)]()));}[_0x80e5b4(0x1ea)](_0x3154c0){const _0x2e3e1c=_0x80e5b4;var _0x65a020;let _0x5d0ae9=_0x3154c0[_0x2e3e1c(0x181)]===void 0x0?void 0x0:p(_0x3154c0[_0x2e3e1c(0x181)]),_0x6acce7=(_0x65a020=_0x3154c0[_0x2e3e1c(0x1c6)])==null?[]:_0x65a020,_0x431e7a=this[_0x2e3e1c(0x17e)](_0x3154c0[_0x2e3e1c(0x1ef)])[_0x2e3e1c(0x155)](_0x199bbc=>_0x5d0ae9&&!_0x199bbc['searchText']['includes'](_0x5d0ae9)||_0x3154c0[_0x2e3e1c(0x183)]!==void 0x0&&_0x199bbc['descriptor'][_0x2e3e1c(0x183)]!==_0x3154c0[_0x2e3e1c(0x183)]||_0x6acce7[_0x2e3e1c(0x144)](_0x3118d2=>{const _0x3c36bd=_0x2e3e1c;var _0x27800b;return!((_0x27800b=_0x199bbc['descriptor'][_0x3c36bd(0x1c6)])!=null&&_0x27800b[_0x3c36bd(0x14d)](_0x3118d2));})?!0x1:_0x3154c0['payloadTypes']===void 0x0||_0x3154c0[_0x2e3e1c(0x1b7)][_0x2e3e1c(0x1a3)](_0x199bbc[_0x2e3e1c(0x1d9)][_0x2e3e1c(0x185)][_0x2e3e1c(0x187)]));return Object[_0x2e3e1c(0x170)](_0x431e7a);}[_0x80e5b4(0x17e)](_0x5e830c){const _0x1dc2fc=_0x80e5b4;let _0x1b2c19=this[_0x1dc2fc(0x1af)][_0x1dc2fc(0x171)](_0x5e830c);if(_0x1b2c19!==void 0x0)return _0x1b2c19;let _0x2d988a=this[_0x1dc2fc(0x15b)][_0x1dc2fc(0x14f)]()[_0x1dc2fc(0x19f)]()[_0x1dc2fc(0x1ac)](ce)['map'](_0xde983c=>{const _0x3eb1ec=_0x1dc2fc;var _0x4e9001;let _0x590757=f(_0xde983c[_0x3eb1ec(0x168)],_0x5e830c,_0xde983c[_0x3eb1ec(0x1a5)],_0xde983c['id']),_0x1b9d18=_0xde983c[_0x3eb1ec(0x17c)]===void 0x0?void 0x0:f(_0xde983c[_0x3eb1ec(0x17c)],_0x5e830c,_0xde983c['defaultLocale'],_0xde983c['id']),_0x4c799f=_0xde983c[_0x3eb1ec(0x177)]===void 0x0?void 0x0:f(_0xde983c[_0x3eb1ec(0x177)]['label'],_0x5e830c,_0xde983c[_0x3eb1ec(0x1a5)],_0xde983c[_0x3eb1ec(0x177)]['id']),_0x16eb4d=Object[_0x3eb1ec(0x170)](_0xde983c[_0x3eb1ec(0x179)]['map'](_0x3866fb=>f(_0x3866fb['label'],_0x5e830c,_0xde983c['defaultLocale'],_0x3866fb['id']))),_0x758a0a=p([_0x590757,_0x1b9d18,_0x4c799f,..._0x16eb4d,...(_0x4e9001=_0xde983c[_0x3eb1ec(0x154)])==null?[]:_0x4e9001][_0x3eb1ec(0x155)](_0x286a5e=>_0x286a5e!==void 0x0)[_0x3eb1ec(0x1c9)]('\x20'));return Object[_0x3eb1ec(0x170)]({'reference':Object[_0x3eb1ec(0x170)]({'registryId':_0xde983c['registryId'],'resourceId':_0xde983c['id']}),'descriptor':_0xde983c,'name':_0x590757,..._0x1b9d18===void 0x0?{}:{'description':_0x1b9d18},..._0x4c799f===void 0x0?{}:{'groupLabel':_0x4c799f},'tagLabels':_0x16eb4d,'searchText':_0x758a0a});}),_0x188696=Object[_0x1dc2fc(0x170)](_0x2d988a);return this[_0x1dc2fc(0x1af)][_0x1dc2fc(0x142)](_0x5e830c,_0x188696),_0x188696;}};Q=X([Y(0x0,P)],Q);let $=class extends _0x1ce828{constructor(_0x5e0e5a=T,_0x545ba5,_0x5b01ba){const _0x2af21f=_0x80e5b4;super(),this['_config']=_0x5e0e5a,this[_0x2af21f(0x1a8)]=_0x545ba5,this[_0x2af21f(0x1bd)]=_0x5b01ba;let {..._0x1f8a60}=_0x4e1d12({},T,this[_0x2af21f(0x184)]);this['_configService'][_0x2af21f(0x163)](w,_0x1f8a60);}['onStarting'](){const _0x420b76=_0x80e5b4;var _0x2df40d;[[P,{'useClass':J}],[Z,{'useClass':Q}],[A,{'useClass':j}]][_0x420b76(0x166)](_0x2246e7=>this[_0x420b76(0x1a8)]['add'](_0x2246e7));let _0x35eed2=this[_0x420b76(0x1a8)][_0x420b76(0x171)](P);((_0x2df40d=this[_0x420b76(0x184)]['registrations'])==null?[]:_0x2df40d)['forEach'](({input:_0x1b6e05,options:_0x4d4f6a})=>{const _0xb9c04=_0x420b76;this[_0xb9c04(0x16c)](_0x35eed2[_0xb9c04(0x169)](_0x1b6e05,_0x4d4f6a));});}};k($,_0x80e5b4(0x190),_0x80e5b4(0x16e)),k($,_0x80e5b4(0x1ad),ie),k($,'version',ae),k($,'type',_0x66b1b7[_0x80e5b4(0x1c0)]),$=X([_0x200e0a(_0x18de0a),Y(0x1,_0x5b4d4b(_0x5d0d66)),Y(0x2,_0x1313c4)],$);export{A as IResourcePayloadHandlerRegistryService,Z as IResourceQueryService,P as IResourceRegistryService,w as RESOURCES_PLUGIN_CONFIG_KEY,j as ResourcePayloadHandlerRegistryService,Q as ResourceQueryService,J as ResourceRegistryService,$ as UniverResourcesPlugin,p as normalizeResourceSearchText,f as resolveResourceLocalizedText,C as sanitizeResourceSvg};
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0x80e5b4=_0x5698;function _0x7ec0(){const _0x14a9e6=['remove','pluginName','delete','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','invalid-image-payload','normalize','http://www.w3.org/2000/svg','keys','width','image/','preview','Registry\x20id\x20\x22','asObservable','clipPath','exec','setAttributeNS','slice','svg','symbol','number','has','href','defaultLocale','order','getOwnPropertyDescriptor','_injector','parsererror','2500484DzPpwg','dataUrl','sort','packageName','clear','_localizedIndexes','5948847gavESj','initialColor','length','dispose','registryId','push','map','payloadTypes','childNodes','intrinsicSize','NFKC','15VnWZYp','id.viewBox.width.height.x.y.x1.x2.y1.y2.cx.cy.r.rx.ry.d.points.transform.fill.fill-opacity.fill-rule.stroke.stroke-width.stroke-opacity.stroke-linecap.stroke-linejoin.stroke-dasharray.opacity.offset.stop-color.stop-opacity.gradientUnits.gradientTransform.patternUnits.patternContentUnits.clip-path.mask.preserveAspectRatio.role.aria-label.href.xlink:href','_configService','resources.query.service','source','UNIVER_UNKNOWN','desc','\x22\x20is\x20duplicated\x20in\x20registry\x20\x22','toLowerCase','style','982672McSmhl','tagIds','matchAll','isFinite','join','url','mask','unsafe-svg','revision$','decode','stroke','unknown-tag','startsWith','label','circle','string','next','\x22\x20is\x20already\x20registered\x20in\x20registry\x20\x22','@univerjs-pro/resources','defaults','descriptor','fill','call','attributes','svg-too-complex','height','registrationIndex','trim','duplicate-tag','_revision$','invalid-svg','doctype','http://www.w3.org/2000/xmlns/','\x22\x20references\x20unknown\x20group\x20\x22','boolean','_handlers','defs','query','image/svg+xml','3349737AUZxYJ','managed','svg-too-large','locale','getElementsByTagName','invalid-resource-id','assign','toPrimitive','stringify','xmlns','values','invalid-registry-id','set','querySelector','some','replace','object','colorEditable','function','code','toLocaleLowerCase','removeAttributeNode','\x22\x20is\x20invalid.','includes','5967584BJiYTE','getAll','7cBKJXA','defineProperty','line','path','keywords','filter','split','value','duplicate-resource','\x22\x20references\x20unknown\x20tag\x20\x22','Resource\x20\x22','_registry','getSupportedTypes','nodeType','base64','resourceId','1.0.0-insiders.20260717-1e84621','storagePolicy','unknown-group','setConfig','from','invalid-image-source','forEach','Tag\x20id\x20\x22','name','register','use','ellipse','disposeWithMe','namespaceURI','UNIVER_RESOURCES_PLUGIN','prototype','freeze','get','decorate','svgText','clip-path','reference','charCodeAt','group','parseFromString','tags','_resources','groups','description','test','_getLocalizedIndex','pattern','iterator','text','3730866NWfytq','groupId','_config','payload','subscribe','type','image','resources.registry.service','byteLength','resources.payload-handler-registry.service','size','855780eOnnvB','documentElement'];_0x7ec0=function(){return _0x14a9e6;};return _0x7ec0();}(function(_0x2d948d,_0x2c9499){const _0x5d08b3=_0x5698,_0x154b49=_0x2d948d();while(!![]){try{const _0x4711e3=parseInt(_0x5d08b3(0x18d))/0x1+-parseInt(_0x5d08b3(0x1aa))/0x2+parseInt(_0x5d08b3(0x1ec))/0x3+-parseInt(_0x5d08b3(0x1c5))/0x4*(-parseInt(_0x5d08b3(0x1bb))/0x5)+-parseInt(_0x5d08b3(0x182))/0x6*(-parseInt(_0x5d08b3(0x150))/0x7)+-parseInt(_0x5d08b3(0x14e))/0x8+-parseInt(_0x5d08b3(0x1b0))/0x9;if(_0x4711e3===_0x2c9499)break;else _0x154b49['push'](_0x154b49['shift']());}catch(_0x4acc0c){_0x154b49['push'](_0x154b49['shift']());}}}(_0x7ec0,0xa48d1));import{UniverLicensePlugin as _0x18de0a}from'@univerjs-pro/license';import{DependentOn as _0x200e0a,Disposable as _0x1ea227,IConfigService as _0x1313c4,Inject as _0x5b4d4b,Injector as _0x5d0d66,Plugin as _0x1ce828,UniverInstanceType as _0x66b1b7,createIdentifier as _0x4b45a9,merge as _0x4e1d12,toDisposable as _0x1c7c16}from'@univerjs/core';import{BehaviorSubject as _0x347645}from'rxjs';function f(_0x2305ae,_0x865675,_0x487fc6,_0x3ab052){const _0x3722b5=_0x5698;var _0xe4ee1c,_0x420973,_0xe76478;return typeof _0x2305ae==_0x3722b5(0x1d4)?_0x2305ae:(_0xe4ee1c=(_0x420973=(_0xe76478=_0x2305ae[_0x865675])==null?_0x487fc6?_0x2305ae[_0x487fc6]:void 0x0:_0xe76478)==null?Object[_0x3722b5(0x140)](_0x2305ae)[0x0]:_0x420973)==null?_0x3ab052:_0xe4ee1c;}function p(_0xdcd67){const _0x2e6b05=_0x5698;return _0xdcd67[_0x2e6b05(0x194)](_0x2e6b05(0x1ba))[_0x2e6b05(0x14a)]()[_0x2e6b05(0x1e0)]()[_0x2e6b05(0x145)](/\s+/g,'\x20');}const m=_0x80e5b4(0x195),ee=new Set([_0x80e5b4(0x1a0),'g',_0x80e5b4(0x153),'rect',_0x80e5b4(0x1d3),_0x80e5b4(0x16b),_0x80e5b4(0x152),'polyline','polygon',_0x80e5b4(0x1e9),'linearGradient','radialGradient','stop',_0x80e5b4(0x19c),_0x80e5b4(0x1cb),_0x80e5b4(0x17f),'title',_0x80e5b4(0x1c1),_0x80e5b4(0x1a1),_0x80e5b4(0x16a)]),h=new Set(_0x80e5b4(0x1bc)[_0x80e5b4(0x156)]('.')),g=/<!--[\s\S]*?-->|<!\[CDATA\[[\s\S]*?\]\]>|<\?[\s\S]*?\?>/g,_=/<(?![!?/])/g,v=/url\s*\(/i,y=/url\s*\(\s*#[A-Za-z0-9_.:-]+\s*\)/gi,te=/^#[A-Za-z0-9_.:-]+$/,ne=new Set([_0x80e5b4(0x1da),_0x80e5b4(0x1cf),_0x80e5b4(0x174),_0x80e5b4(0x1cb)]);function re(_0xb9d42d){const _0x2505b5=_0x80e5b4;let _0x5de237=0x0;for(let _0xf9b458 of _0xb9d42d['replace'](g,'')[_0x2505b5(0x1c7)](_))if(_0x5de237+=0x1,_0x5de237>0x2710)return!0x0;return!0x1;}function b(_0x3bde06){const _0x5c8cca=_0x80e5b4;return v[_0x5c8cca(0x17d)](_0x3bde06)?v['test'](_0x3bde06['replace'](y,'')):!0x1;}function x(_0x20d30f){const _0x57a9af=_0x80e5b4;for(let _0x1fddc8 of Array['from'](_0x20d30f[_0x57a9af(0x1dc)])){let _0x293b49=_0x1fddc8[_0x57a9af(0x168)],_0x424f7b=_0x293b49[_0x57a9af(0x1c3)](),_0x2abe35=_0x424f7b===_0x57a9af(0x1a4)||_0x424f7b==='xlink:href';(_0x424f7b['startsWith']('on')||_0x424f7b===_0x57a9af(0x1c4)||!h[_0x57a9af(0x1a3)](_0x293b49)||_0x2abe35&&!te[_0x57a9af(0x17d)](_0x1fddc8['value'])||ne[_0x57a9af(0x1a3)](_0x424f7b)&&_0x1fddc8['value'][_0x57a9af(0x14d)]('\x5c')||b(_0x1fddc8[_0x57a9af(0x157)]))&&_0x20d30f[_0x57a9af(0x14b)](_0x1fddc8);}}function S(_0x313322){const _0x17673e=_0x80e5b4;for(let _0x2869e1 of Array[_0x17673e(0x164)](_0x313322[_0x17673e(0x1b8)]))_0x2869e1[_0x17673e(0x15d)]===0x7||_0x2869e1[_0x17673e(0x15d)]===0x8?_0x2869e1[_0x17673e(0x18f)]():S(_0x2869e1);}function C(_0x4e15f6){const _0x419a98=_0x80e5b4;if(new TextEncoder()['encode'](_0x4e15f6)[_0x419a98(0x18a)]>0x100000)return{'ok':!0x1,'code':_0x419a98(0x1ee)};if(re(_0x4e15f6))return{'ok':!0x1,'code':_0x419a98(0x1dd)};if(typeof DOMParser>'u'||typeof XMLSerializer>'u')return{'ok':!0x1,'code':_0x419a98(0x1cc)};try{let _0x175b3a=new DOMParser()[_0x419a98(0x178)](_0x4e15f6,_0x419a98(0x1eb)),_0x554fa2=_0x175b3a[_0x419a98(0x18e)];if(_0x554fa2['localName']!==_0x419a98(0x1a0)||_0x175b3a[_0x419a98(0x143)](_0x419a98(0x1a9))||_0x554fa2[_0x419a98(0x16d)]!==null&&_0x554fa2[_0x419a98(0x16d)]!==''&&_0x554fa2['namespaceURI']!==m)return{'ok':!0x1,'code':_0x419a98(0x1e3)};if(_0x175b3a[_0x419a98(0x1e4)])return{'ok':!0x1,'code':_0x419a98(0x1cc)};S(_0x175b3a);for(let _0x24d97c of Array[_0x419a98(0x164)](_0x175b3a[_0x419a98(0x1f0)]('*'))){if(!ee[_0x419a98(0x1a3)](_0x24d97c['localName'])){_0x24d97c[_0x419a98(0x18f)]();continue;}x(_0x24d97c);}return _0x554fa2['namespaceURI']||_0x554fa2[_0x419a98(0x19e)](_0x419a98(0x1e5),_0x419a98(0x13f),m),{'ok':!0x0,'value':new XMLSerializer()['serializeToString'](_0x175b3a)};}catch{return{'ok':!0x1,'code':'invalid-svg'};}}const w='resources.config',T={};var ie=_0x80e5b4(0x1d7),ae=_0x80e5b4(0x160);function E(_0x583df7){'@babel/helpers - typeof';const _0xf3e69a=_0x80e5b4;return E=typeof Symbol==_0xf3e69a(0x148)&&typeof Symbol[_0xf3e69a(0x180)]=='symbol'?function(_0x28f67b){return typeof _0x28f67b;}:function(_0x559c7b){const _0x27b42c=_0xf3e69a;return _0x559c7b&&typeof Symbol==_0x27b42c(0x148)&&_0x559c7b['constructor']===Symbol&&_0x559c7b!==Symbol[_0x27b42c(0x16f)]?_0x27b42c(0x1a1):typeof _0x559c7b;},E(_0x583df7);}function D(_0x5da597,_0x1aa4d5){const _0xd79e24=_0x80e5b4;if(E(_0x5da597)!=_0xd79e24(0x146)||!_0x5da597)return _0x5da597;var _0x1e556e=_0x5da597[Symbol[_0xd79e24(0x1f3)]];if(_0x1e556e!==void 0x0){var _0xbfa239=_0x1e556e[_0xd79e24(0x1db)](_0x5da597,_0x1aa4d5||'default');if(E(_0xbfa239)!=_0xd79e24(0x146))return _0xbfa239;throw TypeError(_0xd79e24(0x192));}return(_0x1aa4d5===_0xd79e24(0x1d4)?String:Number)(_0x5da597);}function O(_0x21f240){const _0x84e168=_0x80e5b4;var _0x62da72=D(_0x21f240,_0x84e168(0x1d4));return E(_0x62da72)==_0x84e168(0x1a1)?_0x62da72:_0x62da72+'';}function k(_0x3790c8,_0x4e97ff,_0x35e768){const _0x3b4e6e=_0x80e5b4;return(_0x4e97ff=O(_0x4e97ff))in _0x3790c8?Object[_0x3b4e6e(0x151)](_0x3790c8,_0x4e97ff,{'value':_0x35e768,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3790c8[_0x4e97ff]=_0x35e768,_0x3790c8;}const A=_0x4b45a9(_0x80e5b4(0x18b));var j=class{constructor(){k(this,'_handlers',new Map());}[_0x80e5b4(0x169)](_0x5ccf52){const _0x556e44=_0x80e5b4;let _0x1417b7=_0x5ccf52[_0x556e44(0x187)];if(!this[_0x556e44(0x1e8)][_0x556e44(0x1a3)](_0x1417b7))return this['_handlers'][_0x556e44(0x142)](_0x1417b7,_0x5ccf52),_0x1c7c16(()=>{const _0x4cd19a=_0x556e44;this['_handlers']['get'](_0x1417b7)===_0x5ccf52&&this[_0x4cd19a(0x1e8)][_0x4cd19a(0x191)](_0x1417b7);});}[_0x80e5b4(0x171)](_0x23bbd0){const _0xf8d405=_0x80e5b4;return this[_0xf8d405(0x1e8)]['get'](_0x23bbd0);}[_0x80e5b4(0x15c)](){const _0xbff959=_0x80e5b4;return new Set(this[_0xbff959(0x1e8)][_0xbff959(0x196)]());}};const M=/^[A-Za-z0-9][A-Za-z0-9._:-]*$/,N=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,P=_0x4b45a9(_0x80e5b4(0x189));function F(_0x3eb7bb){const _0x2e6f8f=_0x80e5b4;return JSON[_0x2e6f8f(0x1f4)]([_0x3eb7bb[_0x2e6f8f(0x1b4)],_0x3eb7bb[_0x2e6f8f(0x15f)]]);}function I(_0x3357da){const _0x1e9c34=_0x80e5b4;return typeof _0x3357da==_0x1e9c34(0x1d4)?_0x3357da:Object[_0x1e9c34(0x170)]({..._0x3357da});}function L(_0x40b0f7){const _0x4c0afe=_0x80e5b4;return Object[_0x4c0afe(0x170)]({'id':_0x40b0f7['id'],'label':I(_0x40b0f7[_0x4c0afe(0x1d2)])});}function R(_0x3c8568){const _0x1ebf2d=_0x80e5b4;return Object[_0x1ebf2d(0x170)]({'id':_0x3c8568['id'],'label':I(_0x3c8568['label'])});}function z(_0x4ec960){const _0x374cd8=_0x80e5b4;return Object['freeze']({'type':_0x4ec960[_0x374cd8(0x187)],'value':_0x4ec960[_0x374cd8(0x157)]});}function B(_0x541b96){const _0x2f1825=_0x80e5b4;return Object[_0x2f1825(0x170)]({..._0x541b96,..._0x541b96[_0x2f1825(0x175)]===void 0x0?{}:{'reference':Object['freeze']({..._0x541b96[_0x2f1825(0x175)]})}});}function _0x5698(_0x783d6c,_0x421b7a){_0x783d6c=_0x783d6c-0x13f;const _0x7ec016=_0x7ec0();let _0x569891=_0x7ec016[_0x783d6c];return _0x569891;}function V(_0x51a4aa){const _0xfe6202=_0x80e5b4;try{let _0x3ddb51=atob(_0x51a4aa),_0x322531=Uint8Array[_0xfe6202(0x164)](_0x3ddb51,_0xa17e31=>_0xa17e31[_0xfe6202(0x176)](0x0));return new TextDecoder('utf-8',{'fatal':!0x0})[_0xfe6202(0x1ce)](_0x322531);}catch{return;}}function H(_0x2dab4a){const _0x3636af=_0x80e5b4;let [_0x5f1d4a,_0x9cf335,..._0xa67866]=_0x2dab4a['trim']()[_0x3636af(0x156)]('/');if(!(_0xa67866[_0x3636af(0x1b2)]>0x0||!N[_0x3636af(0x17d)](_0x5f1d4a)||!N['test'](_0x9cf335)))return _0x5f1d4a[_0x3636af(0x1c3)]()+'/'+_0x9cf335[_0x3636af(0x1c3)]();}function U(_0x381bf6,_0x2d00e){const _0x29c8ea=_0x80e5b4;let _0x34dcc1=/^data:([^;,]+)((?:;[^,]*)*),(.*)$/is[_0x29c8ea(0x19d)](_0x381bf6[_0x29c8ea(0x157)]),_0x2a8451=_0x34dcc1&&H(_0x34dcc1[0x1]);if(!_0x34dcc1||!(_0x2a8451!=null&&_0x2a8451[_0x29c8ea(0x1d1)](_0x29c8ea(0x198))))return{'ok':!0x1,'code':_0x29c8ea(0x165)};if(_0x2a8451!=='image/svg+xml'||_0x2d00e)return{'ok':!0x0,'source':_0x381bf6};let _0xc46ce=_0x34dcc1[0x2][_0x29c8ea(0x156)](';')[_0x29c8ea(0x155)](Boolean),_0x588db2=_0x34dcc1[0x3],_0x4be471;if(_0xc46ce['some'](_0x22cd21=>_0x22cd21[_0x29c8ea(0x1c3)]()===_0x29c8ea(0x15e)))_0x4be471=V(_0x588db2);else try{_0x4be471=decodeURIComponent(_0x588db2);}catch{_0x4be471=void 0x0;}if(_0x4be471===void 0x0)return{'ok':!0x1,'code':_0x29c8ea(0x165)};let _0x12ca53=C(_0x4be471);return _0x12ca53['ok']?{'ok':!0x0,'source':{'type':_0x29c8ea(0x1ab),'value':'data:image/svg+xml;charset=utf-8,'+encodeURIComponent(_0x12ca53[_0x29c8ea(0x157)])}}:{'ok':!0x1,'code':_0x29c8ea(0x1cc)};}function W(_0x4f19a1,_0x270565){const _0x21cbc1=_0x80e5b4;if(_0x4f19a1[_0x21cbc1(0x187)]===_0x21cbc1(0x1ca))try{let _0x105bc9=new URL(_0x4f19a1[_0x21cbc1(0x157)])['protocol'];return['http:','https:','blob:'][_0x21cbc1(0x14d)](_0x105bc9)?{'ok':!0x0,'source':_0x4f19a1}:{'ok':!0x1,'code':_0x21cbc1(0x165)};}catch{return{'ok':!0x1,'code':_0x21cbc1(0x165)};}if(_0x4f19a1[_0x21cbc1(0x187)]==='dataUrl')return U(_0x4f19a1,_0x270565);if(_0x4f19a1[_0x21cbc1(0x187)]==='svgText'){if(_0x270565)return{'ok':!0x0,'source':_0x4f19a1};let _0x2a4a61=C(_0x4f19a1['value']);return _0x2a4a61['ok']?{'ok':!0x0,'source':{'type':'svgText','value':_0x2a4a61['value']}}:{'ok':!0x1,'code':'unsafe-svg'};}return{'ok':!0x1,'code':_0x21cbc1(0x165)};}function G(_0x15b53e){const _0x3718fc=_0x80e5b4;if(typeof _0x15b53e!=_0x3718fc(0x146)||!_0x15b53e)return!0x1;let _0x5b49e0=_0x15b53e;return(_0x5b49e0[_0x3718fc(0x187)]==='url'||_0x5b49e0[_0x3718fc(0x187)]===_0x3718fc(0x1ab)||_0x5b49e0[_0x3718fc(0x187)]===_0x3718fc(0x173))&&typeof _0x5b49e0[_0x3718fc(0x157)]==_0x3718fc(0x1d4);}function K(_0xd7066f){const _0x325169=_0x80e5b4;return _0xd7066f===void 0x0||_0xd7066f===_0x325169(0x175)||_0xd7066f===_0x325169(0x1ed);}function q(_0x17b47c){const _0x167569=_0x80e5b4;if(_0x17b47c===void 0x0)return!0x0;if(typeof _0x17b47c!=_0x167569(0x146)||!_0x17b47c)return!0x1;let _0x350b2c=_0x17b47c;return typeof _0x350b2c[_0x167569(0x197)]=='number'&&Number['isFinite'](_0x350b2c['width'])&&_0x350b2c[_0x167569(0x197)]>0x0&&typeof _0x350b2c[_0x167569(0x1de)]==_0x167569(0x1a2)&&Number[_0x167569(0x1c8)](_0x350b2c[_0x167569(0x1de)])&&_0x350b2c[_0x167569(0x1de)]>0x0;}function oe(_0x588a37,_0x4255ee){const _0x20a4ed=_0x80e5b4;return!K(_0x588a37[_0x20a4ed(0x161)])||!K(_0x4255ee)||_0x588a37['colorEditable']!==void 0x0&&typeof _0x588a37['colorEditable']!=_0x20a4ed(0x1e7)||!q(_0x588a37[_0x20a4ed(0x1b9)])?!0x1:_0x588a37['initialColor']===void 0x0||typeof _0x588a37[_0x20a4ed(0x1b1)]=='string';}function se(_0x49de7c,_0x2617c5,_0x2a3108){const _0xb38b06=_0x80e5b4;var _0x1c2584,_0x3df30f,_0x40024a,_0x8c7f65,_0x578307;let _0x41a152;if(_0x49de7c[_0xb38b06(0x199)]!==void 0x0){if(!G(_0x49de7c[_0xb38b06(0x199)]))return{'ok':!0x1,'code':_0xb38b06(0x165)};let _0x191353=W(_0x49de7c[_0xb38b06(0x199)],_0x2a3108);if(!_0x191353['ok'])return _0x191353;_0x41a152=z(_0x191353['source']);}let _0x2f37f0=_0x49de7c[_0xb38b06(0x185)];if(typeof _0x2f37f0!=_0xb38b06(0x146)||!_0x2f37f0||typeof _0x2f37f0[_0xb38b06(0x187)]!=_0xb38b06(0x1d4))return{'ok':!0x1,'code':_0xb38b06(0x193)};let _0xb560a6=_0x49de7c;if(_0x2f37f0[_0xb38b06(0x187)]!==_0xb38b06(0x188))return{'ok':!0x0,'descriptor':_0x41a152===void 0x0?{..._0xb560a6}:{..._0xb560a6,'preview':_0x41a152}};let _0x2db5b2=_0x2f37f0;if(!G(_0x2db5b2[_0xb38b06(0x1bf)])||!oe(_0x2db5b2,(_0x1c2584=_0x2617c5[_0xb38b06(0x1d8)])==null?void 0x0:_0x1c2584[_0xb38b06(0x161)]))return{'ok':!0x1,'code':_0xb38b06(0x193)};let _0x4a5f97=(_0x3df30f=(_0x40024a=_0x2db5b2[_0xb38b06(0x161)])==null?(_0x8c7f65=_0x2617c5[_0xb38b06(0x1d8)])==null?void 0x0:_0x8c7f65[_0xb38b06(0x161)]:_0x40024a)==null?_0xb38b06(0x175):_0x3df30f,_0xd6ea60=W(_0x2db5b2[_0xb38b06(0x1bf)],_0x2a3108);if(!_0xd6ea60['ok'])return _0xd6ea60;let _0x5006ec={..._0x2db5b2,'source':z(_0xd6ea60['source']),..._0x2db5b2[_0xb38b06(0x1b9)]===void 0x0?{}:{'intrinsicSize':Object['freeze']({..._0x2db5b2[_0xb38b06(0x1b9)]})},'storagePolicy':_0x4a5f97,'colorEditable':(_0x578307=_0x2db5b2[_0xb38b06(0x147)])==null?!0x1:_0x578307};return Object['freeze'](_0x5006ec),{'ok':!0x0,'descriptor':{..._0xb560a6,..._0x41a152===void 0x0?{}:{'preview':_0x41a152},'payload':_0x5006ec}};}var J=class extends _0x1ea227{constructor(..._0x1f0a9f){const _0x47f994=_0x80e5b4;super(..._0x1f0a9f),k(this,_0x47f994(0x17a),new Map()),k(this,_0x47f994(0x1e2),new _0x347645(0x0)),k(this,_0x47f994(0x1cd),this[_0x47f994(0x1e2)][_0x47f994(0x19b)]()),k(this,'_registrationIndex',0x0);}[_0x80e5b4(0x169)](_0x453338,_0x31c1a1){const _0x62c2a3=_0x80e5b4;var _0x12fbb1,_0x47ea5b;let _0x189cbe=[],_0x456270=[],_0xbda217=[],_0x143887=()=>{const _0x4c0243=_0x5698;let _0x278407=Object['freeze']([..._0x189cbe]),_0x7deca5=Object[_0x4c0243(0x170)](_0xbda217[_0x4c0243(0x1b6)](B)),_0x5af77c=_0x1c7c16(()=>{const _0x14f972=_0x4c0243;let _0x2bfc73=!0x1;for(let _0x5441d3 of _0x456270)_0x2bfc73=this[_0x14f972(0x17a)]['delete'](_0x5441d3)||_0x2bfc73;_0x2bfc73&&this['_revision$'][_0x14f972(0x1d5)](this[_0x14f972(0x1e2)]['value']+0x1);});return Object[_0x4c0243(0x170)](Object[_0x4c0243(0x1f2)](_0x5af77c,{'accepted':_0x278407,'diagnostics':_0x7deca5}));};if(!M['test'](_0x453338[_0x62c2a3(0x1b4)]))return _0xbda217['push']({'code':_0x62c2a3(0x141),'message':_0x62c2a3(0x19a)+_0x453338['registryId']+_0x62c2a3(0x14c),'reference':{'registryId':_0x453338[_0x62c2a3(0x1b4)]}}),_0x143887();let _0x1943c2=new Map();for(let _0x25d66f of(_0x12fbb1=_0x453338[_0x62c2a3(0x17b)])==null?[]:_0x12fbb1)_0x1943c2[_0x62c2a3(0x1a3)](_0x25d66f['id'])?_0xbda217[_0x62c2a3(0x1b5)]({'code':'duplicate-group','message':'Group\x20id\x20\x22'+_0x25d66f['id']+'\x22\x20is\x20duplicated\x20in\x20registry\x20\x22'+_0x453338[_0x62c2a3(0x1b4)]+'\x22.','reference':{'registryId':_0x453338['registryId']}}):_0x1943c2['set'](_0x25d66f['id'],L(_0x25d66f));let _0x5ba747=new Map();for(let _0x13a618 of(_0x47ea5b=_0x453338[_0x62c2a3(0x179)])==null?[]:_0x47ea5b)_0x5ba747[_0x62c2a3(0x1a3)](_0x13a618['id'])?_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x1e1),'message':_0x62c2a3(0x167)+_0x13a618['id']+_0x62c2a3(0x1c2)+_0x453338['registryId']+'\x22.','reference':{'registryId':_0x453338[_0x62c2a3(0x1b4)]}}):_0x5ba747[_0x62c2a3(0x142)](_0x13a618['id'],R(_0x13a618));for(let _0x3e9874 of _0x453338['resources']){var _0x231c7f,_0xabec67;let _0x32cddc=Object[_0x62c2a3(0x170)]({'registryId':_0x453338['registryId'],'resourceId':_0x3e9874['id']});if(!M[_0x62c2a3(0x17d)](_0x3e9874['id'])){_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x1f1),'message':'Resource\x20id\x20\x22'+_0x3e9874['id']+_0x62c2a3(0x14c),'reference':_0x32cddc});continue;}let _0x108d33=F(_0x32cddc);if(this[_0x62c2a3(0x17a)][_0x62c2a3(0x1a3)](_0x108d33)){_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x158),'message':'Resource\x20\x22'+_0x3e9874['id']+_0x62c2a3(0x1d6)+_0x453338[_0x62c2a3(0x1b4)]+'\x22.','reference':_0x32cddc});continue;}if(_0x3e9874[_0x62c2a3(0x183)]!==void 0x0&&!_0x1943c2[_0x62c2a3(0x1a3)](_0x3e9874[_0x62c2a3(0x183)])){_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x162),'message':_0x62c2a3(0x15a)+_0x3e9874['id']+_0x62c2a3(0x1e6)+_0x3e9874[_0x62c2a3(0x183)]+'\x22.','reference':_0x32cddc});continue;}let _0x55bf48=(_0x231c7f=_0x3e9874[_0x62c2a3(0x1c6)])==null?void 0x0:_0x231c7f['find'](_0x4992b9=>!_0x5ba747[_0x62c2a3(0x1a3)](_0x4992b9));if(_0x55bf48!==void 0x0){_0xbda217[_0x62c2a3(0x1b5)]({'code':_0x62c2a3(0x1d0),'message':'Resource\x20\x22'+_0x3e9874['id']+_0x62c2a3(0x159)+_0x55bf48+'\x22.','reference':_0x32cddc});continue;}let _0x364216=se(_0x3e9874,_0x453338,(_0x31c1a1==null?void 0x0:_0x31c1a1['trusted'])===!0x0);if(!_0x364216['ok']){_0xbda217['push']({'code':_0x364216[_0x62c2a3(0x149)],'message':_0x62c2a3(0x15a)+_0x3e9874['id']+'\x22\x20has\x20an\x20invalid\x20or\x20unsafe\x20image\x20source.','reference':_0x32cddc});continue;}let _0x1c21c1=Object['freeze']({..._0x364216[_0x62c2a3(0x1d9)],'name':I(_0x364216[_0x62c2a3(0x1d9)][_0x62c2a3(0x168)]),'description':_0x364216[_0x62c2a3(0x1d9)]['description']===void 0x0?void 0x0:I(_0x364216['descriptor'][_0x62c2a3(0x17c)]),'tagIds':_0x364216['descriptor'][_0x62c2a3(0x1c6)]===void 0x0?void 0x0:Object['freeze']([..._0x364216['descriptor'][_0x62c2a3(0x1c6)]]),'keywords':_0x364216[_0x62c2a3(0x1d9)]['keywords']===void 0x0?void 0x0:Object[_0x62c2a3(0x170)]([..._0x364216[_0x62c2a3(0x1d9)][_0x62c2a3(0x154)]]),'registryId':_0x453338[_0x62c2a3(0x1b4)],'defaultLocale':_0x453338[_0x62c2a3(0x1a5)],'registrationIndex':this['_registrationIndex']++,'group':_0x3e9874[_0x62c2a3(0x183)]===void 0x0?void 0x0:_0x1943c2[_0x62c2a3(0x171)](_0x3e9874[_0x62c2a3(0x183)]),'tags':Object[_0x62c2a3(0x170)](((_0xabec67=_0x3e9874[_0x62c2a3(0x1c6)])==null?[]:_0xabec67)[_0x62c2a3(0x1b6)](_0x3f8f36=>_0x5ba747[_0x62c2a3(0x171)](_0x3f8f36)))});this[_0x62c2a3(0x17a)][_0x62c2a3(0x142)](_0x108d33,_0x1c21c1),_0x189cbe[_0x62c2a3(0x1b5)](_0x32cddc),_0x456270['push'](_0x108d33);}return _0x189cbe[_0x62c2a3(0x1b2)]>0x0&&this[_0x62c2a3(0x1e2)][_0x62c2a3(0x1d5)](this['_revision$']['value']+0x1),_0x143887();}[_0x80e5b4(0x171)](_0x16ec6c){const _0x343ec2=_0x80e5b4;return this[_0x343ec2(0x17a)][_0x343ec2(0x171)](F(_0x16ec6c));}[_0x80e5b4(0x14f)](){const _0xda7003=_0x80e5b4;return Object[_0xda7003(0x170)](Array[_0xda7003(0x164)](this[_0xda7003(0x17a)]['values']()));}['dispose'](){const _0x4275a3=_0x80e5b4;this[_0x4275a3(0x17a)][_0x4275a3(0x18c)]>0x0&&(this['_resources'][_0x4275a3(0x1ae)](),this[_0x4275a3(0x1e2)][_0x4275a3(0x1d5)](this[_0x4275a3(0x1e2)]['value']+0x1)),this['_revision$']['complete'](),super[_0x4275a3(0x1b3)]();}};function Y(_0x2a50b2,_0x52472a){return function(_0x181e52,_0x4ec845){_0x52472a(_0x181e52,_0x4ec845,_0x2a50b2);};}function X(_0xe5f485,_0x4e223c,_0x25e307,_0x170bb8){const _0x2688e5=_0x80e5b4;var _0x35e3f5=arguments[_0x2688e5(0x1b2)],_0x19545=_0x35e3f5<0x3?_0x4e223c:_0x170bb8===null?_0x170bb8=Object[_0x2688e5(0x1a7)](_0x4e223c,_0x25e307):_0x170bb8,_0x169a84;if(typeof Reflect==_0x2688e5(0x146)&&typeof Reflect[_0x2688e5(0x172)]=='function')_0x19545=Reflect['decorate'](_0xe5f485,_0x4e223c,_0x25e307,_0x170bb8);else{for(var _0x34dc2f=_0xe5f485[_0x2688e5(0x1b2)]-0x1;_0x34dc2f>=0x0;_0x34dc2f--)(_0x169a84=_0xe5f485[_0x34dc2f])&&(_0x19545=(_0x35e3f5<0x3?_0x169a84(_0x19545):_0x35e3f5>0x3?_0x169a84(_0x4e223c,_0x25e307,_0x19545):_0x169a84(_0x4e223c,_0x25e307))||_0x19545);}return _0x35e3f5>0x3&&_0x19545&&Object['defineProperty'](_0x4e223c,_0x25e307,_0x19545),_0x19545;}const Z=_0x4b45a9(_0x80e5b4(0x1be));function ce(_0x130943,_0x4ee07a){const _0x3fc09f=_0x80e5b4;var _0xd9f009,_0x49880e;let _0xb3db0b=((_0xd9f009=_0x130943['order'])==null?_0x130943[_0x3fc09f(0x1df)]:_0xd9f009)-((_0x49880e=_0x4ee07a[_0x3fc09f(0x1a6)])==null?_0x4ee07a['registrationIndex']:_0x49880e);if(_0xb3db0b!==0x0)return _0xb3db0b;let _0x5d3f4e=_0x130943[_0x3fc09f(0x1df)]-_0x4ee07a[_0x3fc09f(0x1df)];if(_0x5d3f4e!==0x0)return _0x5d3f4e;let _0x1212fc=JSON[_0x3fc09f(0x1f4)]([_0x130943[_0x3fc09f(0x1b4)],_0x130943['id']]),_0x4f7da9=JSON[_0x3fc09f(0x1f4)]([_0x4ee07a[_0x3fc09f(0x1b4)],_0x4ee07a['id']]);return _0x1212fc<_0x4f7da9?-0x1:+(_0x1212fc>_0x4f7da9);}let Q=class extends _0x1ea227{constructor(_0x340c74){const _0x3d4507=_0x80e5b4;super(),this[_0x3d4507(0x15b)]=_0x340c74,k(this,_0x3d4507(0x1af),new Map()),this['disposeWithMe'](this['_registry']['revision$'][_0x3d4507(0x186)](()=>this[_0x3d4507(0x1af)][_0x3d4507(0x1ae)]()));}[_0x80e5b4(0x1ea)](_0x3154c0){const _0x2e3e1c=_0x80e5b4;var _0x65a020;let _0x5d0ae9=_0x3154c0[_0x2e3e1c(0x181)]===void 0x0?void 0x0:p(_0x3154c0[_0x2e3e1c(0x181)]),_0x6acce7=(_0x65a020=_0x3154c0[_0x2e3e1c(0x1c6)])==null?[]:_0x65a020,_0x431e7a=this[_0x2e3e1c(0x17e)](_0x3154c0[_0x2e3e1c(0x1ef)])[_0x2e3e1c(0x155)](_0x199bbc=>_0x5d0ae9&&!_0x199bbc['searchText']['includes'](_0x5d0ae9)||_0x3154c0[_0x2e3e1c(0x183)]!==void 0x0&&_0x199bbc['descriptor'][_0x2e3e1c(0x183)]!==_0x3154c0[_0x2e3e1c(0x183)]||_0x6acce7[_0x2e3e1c(0x144)](_0x3118d2=>{const _0x3c36bd=_0x2e3e1c;var _0x27800b;return!((_0x27800b=_0x199bbc['descriptor'][_0x3c36bd(0x1c6)])!=null&&_0x27800b[_0x3c36bd(0x14d)](_0x3118d2));})?!0x1:_0x3154c0['payloadTypes']===void 0x0||_0x3154c0[_0x2e3e1c(0x1b7)][_0x2e3e1c(0x1a3)](_0x199bbc[_0x2e3e1c(0x1d9)][_0x2e3e1c(0x185)][_0x2e3e1c(0x187)]));return Object[_0x2e3e1c(0x170)](_0x431e7a);}[_0x80e5b4(0x17e)](_0x5e830c){const _0x1dc2fc=_0x80e5b4;let _0x1b2c19=this[_0x1dc2fc(0x1af)][_0x1dc2fc(0x171)](_0x5e830c);if(_0x1b2c19!==void 0x0)return _0x1b2c19;let _0x2d988a=this[_0x1dc2fc(0x15b)][_0x1dc2fc(0x14f)]()[_0x1dc2fc(0x19f)]()[_0x1dc2fc(0x1ac)](ce)['map'](_0xde983c=>{const _0x3eb1ec=_0x1dc2fc;var _0x4e9001;let _0x590757=f(_0xde983c[_0x3eb1ec(0x168)],_0x5e830c,_0xde983c[_0x3eb1ec(0x1a5)],_0xde983c['id']),_0x1b9d18=_0xde983c[_0x3eb1ec(0x17c)]===void 0x0?void 0x0:f(_0xde983c[_0x3eb1ec(0x17c)],_0x5e830c,_0xde983c['defaultLocale'],_0xde983c['id']),_0x4c799f=_0xde983c[_0x3eb1ec(0x177)]===void 0x0?void 0x0:f(_0xde983c[_0x3eb1ec(0x177)]['label'],_0x5e830c,_0xde983c[_0x3eb1ec(0x1a5)],_0xde983c[_0x3eb1ec(0x177)]['id']),_0x16eb4d=Object[_0x3eb1ec(0x170)](_0xde983c[_0x3eb1ec(0x179)]['map'](_0x3866fb=>f(_0x3866fb['label'],_0x5e830c,_0xde983c['defaultLocale'],_0x3866fb['id']))),_0x758a0a=p([_0x590757,_0x1b9d18,_0x4c799f,..._0x16eb4d,...(_0x4e9001=_0xde983c[_0x3eb1ec(0x154)])==null?[]:_0x4e9001][_0x3eb1ec(0x155)](_0x286a5e=>_0x286a5e!==void 0x0)[_0x3eb1ec(0x1c9)]('\x20'));return Object[_0x3eb1ec(0x170)]({'reference':Object[_0x3eb1ec(0x170)]({'registryId':_0xde983c['registryId'],'resourceId':_0xde983c['id']}),'descriptor':_0xde983c,'name':_0x590757,..._0x1b9d18===void 0x0?{}:{'description':_0x1b9d18},..._0x4c799f===void 0x0?{}:{'groupLabel':_0x4c799f},'tagLabels':_0x16eb4d,'searchText':_0x758a0a});}),_0x188696=Object[_0x1dc2fc(0x170)](_0x2d988a);return this[_0x1dc2fc(0x1af)][_0x1dc2fc(0x142)](_0x5e830c,_0x188696),_0x188696;}};Q=X([Y(0x0,P)],Q);let $=class extends _0x1ce828{constructor(_0x5e0e5a=T,_0x545ba5,_0x5b01ba){const _0x2af21f=_0x80e5b4;super(),this['_config']=_0x5e0e5a,this[_0x2af21f(0x1a8)]=_0x545ba5,this[_0x2af21f(0x1bd)]=_0x5b01ba;let {..._0x1f8a60}=_0x4e1d12({},T,this[_0x2af21f(0x184)]);this['_configService'][_0x2af21f(0x163)](w,_0x1f8a60);}['onStarting'](){const _0x420b76=_0x80e5b4;var _0x2df40d;[[P,{'useClass':J}],[Z,{'useClass':Q}],[A,{'useClass':j}]][_0x420b76(0x166)](_0x2246e7=>this[_0x420b76(0x1a8)]['add'](_0x2246e7));let _0x35eed2=this[_0x420b76(0x1a8)][_0x420b76(0x171)](P);((_0x2df40d=this[_0x420b76(0x184)]['registrations'])==null?[]:_0x2df40d)['forEach'](({input:_0x1b6e05,options:_0x4d4f6a})=>{const _0xb9c04=_0x420b76;this[_0xb9c04(0x16c)](_0x35eed2[_0xb9c04(0x169)](_0x1b6e05,_0x4d4f6a));});}};k($,_0x80e5b4(0x190),_0x80e5b4(0x16e)),k($,_0x80e5b4(0x1ad),ie),k($,'version',ae),k($,'type',_0x66b1b7[_0x80e5b4(0x1c0)]),$=X([_0x200e0a(_0x18de0a),Y(0x1,_0x5b4d4b(_0x5d0d66)),Y(0x2,_0x1313c4)],$);export{A as IResourcePayloadHandlerRegistryService,Z as IResourceQueryService,P as IResourceRegistryService,w as RESOURCES_PLUGIN_CONFIG_KEY,j as ResourcePayloadHandlerRegistryService,Q as ResourceQueryService,J as ResourceRegistryService,$ as UniverResourcesPlugin,p as normalizeResourceSearchText,f as resolveResourceLocalizedText,C as sanitizeResourceSvg};
@@ -0,0 +1,3 @@
1
+ import type { ResourceLocalizedText } from '../types/resource';
2
+ export declare function resolveResourceLocalizedText(value: ResourceLocalizedText, locale: string, defaultLocale: string | undefined, fallbackId: string): string;
3
+ export declare function normalizeResourceSearchText(value: string): string;
@@ -0,0 +1,8 @@
1
+ export type IResourceSvgSanitizeResult = {
2
+ ok: true;
3
+ value: string;
4
+ } | {
5
+ ok: false;
6
+ code: 'svg-too-large' | 'svg-too-complex' | 'invalid-svg' | 'unsafe-svg';
7
+ };
8
+ export declare function sanitizeResourceSvg(svg: string): IResourceSvgSanitizeResult;
@@ -0,0 +1,10 @@
1
+ import type { IResourceRegistrationInput, IResourceRegistrationOptions } from '../types/resource';
2
+ export declare const RESOURCES_PLUGIN_CONFIG_KEY = "resources.config";
3
+ export declare const configSymbol: unique symbol;
4
+ export interface IUniverResourcesConfig {
5
+ registrations?: readonly {
6
+ input: IResourceRegistrationInput;
7
+ options?: IResourceRegistrationOptions;
8
+ }[];
9
+ }
10
+ export declare const defaultPluginConfig: IUniverResourcesConfig;
@@ -0,0 +1,10 @@
1
+ export { normalizeResourceSearchText, resolveResourceLocalizedText } from './common/localized-text';
2
+ export { sanitizeResourceSvg } from './common/svg-sanitizer';
3
+ export type { IResourceSvgSanitizeResult } from './common/svg-sanitizer';
4
+ export { RESOURCES_PLUGIN_CONFIG_KEY } from './config/config';
5
+ export type { IUniverResourcesConfig } from './config/config';
6
+ export { UniverResourcesPlugin } from './plugin';
7
+ export { IResourcePayloadHandlerRegistryService, ResourcePayloadHandlerRegistryService, } from './services/resource-payload-handler-registry.service';
8
+ export { IResourceQueryService, ResourceQueryService } from './services/resource-query.service';
9
+ export { IResourceRegistryService, ResourceRegistryService } from './services/resource-registry.service';
10
+ export type { IRegisteredResource, IResolvedResource, IResourceDescriptor, IResourceDiagnostic, IResourceGroup, IResourceImagePayload, IResourcePayloadHandler, IResourceQuery, IResourceReference, IResourceRegistrationInput, IResourceRegistrationOptions, IResourceRegistrationResult, IResourceTag, ResourceDiagnosticCode, ResourceImageSource, ResourceLocalizedText, ResourceStoragePolicy, } from './types/resource';
@@ -0,0 +1,14 @@
1
+ import type { IUniverResourcesConfig } from './config/config';
2
+ import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
+ export declare const RESOURCES_PLUGIN_NAME = "UNIVER_RESOURCES_PLUGIN";
4
+ export declare class UniverResourcesPlugin extends Plugin {
5
+ private readonly _config;
6
+ protected readonly _injector: Injector;
7
+ private readonly _configService;
8
+ static pluginName: string;
9
+ static packageName: string;
10
+ static version: string;
11
+ static type: UniverInstanceType;
12
+ constructor(_config: Partial<IUniverResourcesConfig> | undefined, _injector: Injector, _configService: IConfigService);
13
+ onStarting(): void;
14
+ }
@@ -0,0 +1,14 @@
1
+ import type { IDisposable } from '@univerjs/core';
2
+ import type { IResourcePayloadHandler } from '../types/resource';
3
+ export interface IResourcePayloadHandlerRegistryService {
4
+ register(handler: IResourcePayloadHandler): IDisposable | undefined;
5
+ get(type: string): IResourcePayloadHandler | undefined;
6
+ getSupportedTypes(): ReadonlySet<string>;
7
+ }
8
+ export declare const IResourcePayloadHandlerRegistryService: import("@wendellhu/redi").IdentifierDecorator<IResourcePayloadHandlerRegistryService>;
9
+ export declare class ResourcePayloadHandlerRegistryService implements IResourcePayloadHandlerRegistryService {
10
+ private readonly _handlers;
11
+ register(handler: IResourcePayloadHandler): IDisposable | undefined;
12
+ get(type: string): IResourcePayloadHandler | undefined;
13
+ getSupportedTypes(): ReadonlySet<string>;
14
+ }
@@ -0,0 +1,14 @@
1
+ import type { IResolvedResource, IResourceQuery } from '../types/resource';
2
+ import { Disposable } from '@univerjs/core';
3
+ import { IResourceRegistryService } from './resource-registry.service';
4
+ export interface IResourceQueryService {
5
+ query(query: IResourceQuery): readonly IResolvedResource[];
6
+ }
7
+ export declare const IResourceQueryService: import("@wendellhu/redi").IdentifierDecorator<IResourceQueryService>;
8
+ export declare class ResourceQueryService extends Disposable implements IResourceQueryService {
9
+ private readonly _registry;
10
+ private readonly _localizedIndexes;
11
+ constructor(_registry: IResourceRegistryService);
12
+ query(query: IResourceQuery): readonly IResolvedResource[];
13
+ private _getLocalizedIndex;
14
+ }
@@ -0,0 +1,20 @@
1
+ import type { Observable } from 'rxjs';
2
+ import type { IRegisteredResource, IResourceReference, IResourceRegistrationInput, IResourceRegistrationOptions, IResourceRegistrationResult } from '../types/resource';
3
+ import { Disposable } from '@univerjs/core';
4
+ export interface IResourceRegistryService {
5
+ readonly revision$: Observable<number>;
6
+ register(input: IResourceRegistrationInput, options?: IResourceRegistrationOptions): IResourceRegistrationResult;
7
+ get(reference: IResourceReference): IRegisteredResource | undefined;
8
+ getAll(): readonly IRegisteredResource[];
9
+ }
10
+ export declare const IResourceRegistryService: import("@wendellhu/redi").IdentifierDecorator<IResourceRegistryService>;
11
+ export declare class ResourceRegistryService extends Disposable implements IResourceRegistryService {
12
+ private readonly _resources;
13
+ private readonly _revision$;
14
+ readonly revision$: Observable<number>;
15
+ private _registrationIndex;
16
+ register(input: IResourceRegistrationInput, options?: IResourceRegistrationOptions): IResourceRegistrationResult;
17
+ get(reference: IResourceReference): IRegisteredResource | undefined;
18
+ getAll(): readonly IRegisteredResource[];
19
+ dispose(): void;
20
+ }
@@ -0,0 +1,104 @@
1
+ import type { IDisposable } from '@univerjs/core';
2
+ export type ResourceLocalizedText = string | Readonly<Record<string, string>>;
3
+ export type ResourceStoragePolicy = 'reference' | 'managed';
4
+ export type ResourceImageSource = {
5
+ type: 'url';
6
+ value: string;
7
+ } | {
8
+ type: 'dataUrl';
9
+ value: string;
10
+ } | {
11
+ type: 'svgText';
12
+ value: string;
13
+ };
14
+ export interface IResourceGroup {
15
+ id: string;
16
+ label: ResourceLocalizedText;
17
+ }
18
+ export interface IResourceTag {
19
+ id: string;
20
+ label: ResourceLocalizedText;
21
+ }
22
+ export interface IResourceImageSize {
23
+ width: number;
24
+ height: number;
25
+ }
26
+ export interface IResourceImagePayload {
27
+ type: 'image';
28
+ source: ResourceImageSource;
29
+ intrinsicSize?: IResourceImageSize;
30
+ storagePolicy?: ResourceStoragePolicy;
31
+ colorEditable?: boolean;
32
+ initialColor?: string;
33
+ }
34
+ export interface IResourceReference {
35
+ registryId: string;
36
+ resourceId: string;
37
+ }
38
+ export interface IResourceDescriptor<TPayload = unknown> {
39
+ id: string;
40
+ name: ResourceLocalizedText;
41
+ description?: ResourceLocalizedText;
42
+ groupId?: string;
43
+ tagIds?: readonly string[];
44
+ keywords?: readonly string[];
45
+ order?: number;
46
+ preview?: ResourceImageSource;
47
+ payload: TPayload;
48
+ }
49
+ export interface IResourceRegistrationInput<TPayload = unknown> {
50
+ registryId: string;
51
+ defaultLocale?: string;
52
+ groups?: readonly IResourceGroup[];
53
+ tags?: readonly IResourceTag[];
54
+ resources: readonly IResourceDescriptor<TPayload>[];
55
+ defaults?: {
56
+ storagePolicy?: ResourceStoragePolicy;
57
+ };
58
+ }
59
+ export interface IResourceRegistrationOptions {
60
+ trusted?: boolean;
61
+ }
62
+ export interface IResourceRegistrationResult extends IDisposable {
63
+ accepted: readonly IResourceReference[];
64
+ diagnostics: readonly IResourceDiagnostic[];
65
+ }
66
+ export interface IResourceQuery {
67
+ locale: string;
68
+ text?: string;
69
+ groupId?: string;
70
+ tagIds?: readonly string[];
71
+ payloadTypes?: ReadonlySet<string>;
72
+ }
73
+ export interface IResolvedResource {
74
+ reference: IResourceReference;
75
+ descriptor: IRegisteredResource;
76
+ name: string;
77
+ description?: string;
78
+ groupLabel?: string;
79
+ tagLabels: readonly string[];
80
+ }
81
+ export interface IResourcePayloadHandler<TPayload extends {
82
+ type: string;
83
+ } = {
84
+ type: string;
85
+ }, TContext = unknown, TResult = unknown> {
86
+ type: TPayload['type'];
87
+ validate(payload: TPayload): readonly IResourceDiagnostic[];
88
+ materialize(payload: TPayload, context: TContext, reference: IResourceReference): Promise<TResult> | TResult;
89
+ }
90
+ export type ResourceDiagnosticCode = 'invalid-registry-id' | 'invalid-resource-id' | 'duplicate-resource' | 'duplicate-group' | 'duplicate-tag' | 'unknown-group' | 'unknown-tag' | 'invalid-image-source' | 'unsafe-svg' | 'invalid-image-payload';
91
+ export interface IResourceDiagnostic {
92
+ code: ResourceDiagnosticCode;
93
+ message: string;
94
+ reference?: Partial<IResourceReference>;
95
+ }
96
+ export interface IRegisteredResource extends IResourceDescriptor<{
97
+ type: string;
98
+ }> {
99
+ registryId: string;
100
+ defaultLocale?: string;
101
+ registrationIndex: number;
102
+ group?: IResourceGroup;
103
+ tags: readonly IResourceTag[];
104
+ }
@@ -0,0 +1 @@
1
+ (function(_0x4c7fb2,_0x791617){const _0x514a97=_0x2e22,_0x4c1ad1=_0x4c7fb2();while(!![]){try{const _0x4d5246=-parseInt(_0x514a97(0x1dd))/0x1+-parseInt(_0x514a97(0x1a3))/0x2*(parseInt(_0x514a97(0x1a1))/0x3)+parseInt(_0x514a97(0x181))/0x4+parseInt(_0x514a97(0x16b))/0x5+parseInt(_0x514a97(0x1ad))/0x6*(parseInt(_0x514a97(0x187))/0x7)+parseInt(_0x514a97(0x124))/0x8*(-parseInt(_0x514a97(0x193))/0x9)+parseInt(_0x514a97(0x197))/0xa;if(_0x4d5246===_0x791617)break;else _0x4c1ad1['push'](_0x4c1ad1['shift']());}catch(_0x26250b){_0x4c1ad1['push'](_0x4c1ad1['shift']());}}}(_0x34dc,0xae94a),function(_0x459095,_0x2497e3){const _0x43d47f=_0x2e22;typeof exports==_0x43d47f(0x178)&&typeof module<'u'?_0x2497e3(exports,require('@univerjs-pro/license'),require('@univerjs/core'),require('rxjs')):typeof define==_0x43d47f(0x11c)&&define[_0x43d47f(0x1c8)]?define([_0x43d47f(0x1c5),_0x43d47f(0x16e),_0x43d47f(0x137),_0x43d47f(0x10f)],_0x2497e3):(_0x459095=typeof globalThis<'u'?globalThis:_0x459095||self,_0x2497e3(_0x459095[_0x43d47f(0x191)]={},_0x459095[_0x43d47f(0x13f)],_0x459095[_0x43d47f(0x125)],_0x459095[_0x43d47f(0x10f)]));}(this,function(_0x42ff79,_0x54418a,_0x19d6e9,_0x5ddee1){const _0x3dc416=_0x2e22;Object[_0x3dc416(0x1aa)](_0x42ff79,Symbol['toStringTag'],{'value':_0x3dc416(0x175)});function _0x527020(_0x157bea,_0x32e61f,_0x36f522,_0x422ce3){const _0x1a109a=_0x3dc416;var _0x7e574e,_0x359ac9,_0x399572;return typeof _0x157bea==_0x1a109a(0x144)?_0x157bea:(_0x7e574e=(_0x359ac9=(_0x399572=_0x157bea[_0x32e61f])==null?_0x36f522?_0x157bea[_0x36f522]:void 0x0:_0x399572)==null?Object[_0x1a109a(0x157)](_0x157bea)[0x0]:_0x359ac9)==null?_0x422ce3:_0x7e574e;}function _0x9dbcf7(_0x490372){const _0xcbfdf=_0x3dc416;return _0x490372[_0xcbfdf(0x166)](_0xcbfdf(0x1b5))['toLocaleLowerCase']()['trim']()['replace'](/\s+/g,'\x20');}let _0x41dd21=_0x3dc416(0x16f),_0x3934cd=new Set([_0x3dc416(0x150),'g',_0x3dc416(0x162),'rect',_0x3dc416(0x15d),_0x3dc416(0x16d),_0x3dc416(0x12d),_0x3dc416(0x155),'polygon','defs',_0x3dc416(0x194),_0x3dc416(0x127),'stop',_0x3dc416(0x1c3),_0x3dc416(0x116),_0x3dc416(0x14c),'title',_0x3dc416(0x126),'symbol','use']),_0x445284=new Set(_0x3dc416(0x1af)[_0x3dc416(0x1c7)]('.')),_0xffa8a=/<!--[\s\S]*?-->|<!\[CDATA\[[\s\S]*?\]\]>|<\?[\s\S]*?\?>/g,_0x42b9e6=/<(?![!?/])/g,_0x3c6d81=/url\s*\(/i,_0x2af137=/url\s*\(\s*#[A-Za-z0-9_.:-]+\s*\)/gi,_0x26b2ba=/^#[A-Za-z0-9_.:-]+$/,_0x1aa0f8=new Set([_0x3dc416(0x16a),_0x3dc416(0x188),_0x3dc416(0x12a),_0x3dc416(0x116)]);function _0x5d1a5f(_0x313ee1){const _0x1f2c10=_0x3dc416;let _0x5ec7d7=0x0;for(let _0x158b07 of _0x313ee1[_0x1f2c10(0x169)](_0xffa8a,'')['matchAll'](_0x42b9e6))if(_0x5ec7d7+=0x1,_0x5ec7d7>0x2710)return!0x0;return!0x1;}function _0x35bb15(_0x36c398){const _0x191e1f=_0x3dc416;return _0x3c6d81[_0x191e1f(0x14b)](_0x36c398)?_0x3c6d81[_0x191e1f(0x14b)](_0x36c398[_0x191e1f(0x169)](_0x2af137,'')):!0x1;}function _0x35bf1f(_0x19dd87){const _0x1a93ce=_0x3dc416;for(let _0x241453 of Array[_0x1a93ce(0x1da)](_0x19dd87['attributes'])){let _0xa81cd7=_0x241453[_0x1a93ce(0x19b)],_0x4ecf9a=_0xa81cd7['toLowerCase'](),_0x55edba=_0x4ecf9a==='href'||_0x4ecf9a===_0x1a93ce(0x143);(_0x4ecf9a[_0x1a93ce(0x111)]('on')||_0x4ecf9a===_0x1a93ce(0x121)||!_0x445284['has'](_0xa81cd7)||_0x55edba&&!_0x26b2ba[_0x1a93ce(0x14b)](_0x241453[_0x1a93ce(0x151)])||_0x1aa0f8['has'](_0x4ecf9a)&&_0x241453[_0x1a93ce(0x151)][_0x1a93ce(0x156)]('\x5c')||_0x35bb15(_0x241453[_0x1a93ce(0x151)]))&&_0x19dd87['removeAttributeNode'](_0x241453);}}function _0x3678af(_0x333167){const _0x7b6e27=_0x3dc416;for(let _0x43d229 of Array['from'](_0x333167['childNodes']))_0x43d229[_0x7b6e27(0x14a)]===0x7||_0x43d229['nodeType']===0x8?_0x43d229[_0x7b6e27(0x170)]():_0x3678af(_0x43d229);}function _0x2c9cd5(_0x423d90){const _0xe4091a=_0x3dc416;if(new TextEncoder()['encode'](_0x423d90)[_0xe4091a(0x19c)]>0x100000)return{'ok':!0x1,'code':_0xe4091a(0x146)};if(_0x5d1a5f(_0x423d90))return{'ok':!0x1,'code':_0xe4091a(0x184)};if(typeof DOMParser>'u'||typeof XMLSerializer>'u')return{'ok':!0x1,'code':_0xe4091a(0x1d1)};try{let _0x306d76=new DOMParser()[_0xe4091a(0x1ab)](_0x423d90,'image/svg+xml'),_0x249151=_0x306d76[_0xe4091a(0x1d8)];if(_0x249151[_0xe4091a(0x134)]!=='svg'||_0x306d76[_0xe4091a(0x1b1)](_0xe4091a(0x135))||_0x249151['namespaceURI']!==null&&_0x249151[_0xe4091a(0x12f)]!==''&&_0x249151['namespaceURI']!==_0x41dd21)return{'ok':!0x1,'code':_0xe4091a(0x159)};if(_0x306d76[_0xe4091a(0x1c4)])return{'ok':!0x1,'code':'unsafe-svg'};_0x3678af(_0x306d76);for(let _0x215afb of Array[_0xe4091a(0x1da)](_0x306d76['getElementsByTagName']('*'))){if(!_0x3934cd[_0xe4091a(0x15c)](_0x215afb[_0xe4091a(0x134)])){_0x215afb[_0xe4091a(0x170)]();continue;}_0x35bf1f(_0x215afb);}return _0x249151[_0xe4091a(0x12f)]||_0x249151['setAttributeNS']('http://www.w3.org/2000/xmlns/',_0xe4091a(0x12b),_0x41dd21),{'ok':!0x0,'value':new XMLSerializer()[_0xe4091a(0x177)](_0x306d76)};}catch{return{'ok':!0x1,'code':_0xe4091a(0x159)};}}let _0x459bfb=_0x3dc416(0x123),_0x20cb5e={};var _0xcbadf1='@univerjs-pro/resources',_0x414950='1.0.0-insiders.20260717-1e84621';function _0x57caa4(_0x225894){'@babel/helpers - typeof';const _0x2f83b5=_0x3dc416;return _0x57caa4=typeof Symbol==_0x2f83b5(0x11c)&&typeof Symbol[_0x2f83b5(0x1bf)]==_0x2f83b5(0x1c1)?function(_0x544720){return typeof _0x544720;}:function(_0x45133c){const _0x170021=_0x2f83b5;return _0x45133c&&typeof Symbol==_0x170021(0x11c)&&_0x45133c[_0x170021(0x1bd)]===Symbol&&_0x45133c!==Symbol['prototype']?'symbol':typeof _0x45133c;},_0x57caa4(_0x225894);}function _0x32cb32(_0x20dd55,_0x181c7e){const _0x4402a0=_0x3dc416;if(_0x57caa4(_0x20dd55)!='object'||!_0x20dd55)return _0x20dd55;var _0x5edcac=_0x20dd55[Symbol[_0x4402a0(0x131)]];if(_0x5edcac!==void 0x0){var _0x5eac9e=_0x5edcac[_0x4402a0(0x18f)](_0x20dd55,_0x181c7e||_0x4402a0(0x152));if(_0x57caa4(_0x5eac9e)!=_0x4402a0(0x178))return _0x5eac9e;throw TypeError(_0x4402a0(0x113));}return(_0x181c7e==='string'?String:Number)(_0x20dd55);}function _0x2e7eb1(_0x459bcb){const _0xd55b2d=_0x3dc416;var _0x98cb61=_0x32cb32(_0x459bcb,'string');return _0x57caa4(_0x98cb61)==_0xd55b2d(0x1c1)?_0x98cb61:_0x98cb61+'';}function _0x4cbb7b(_0x1965e2,_0x1ec4a4,_0x4012c7){const _0x586c92=_0x3dc416;return(_0x1ec4a4=_0x2e7eb1(_0x1ec4a4))in _0x1965e2?Object[_0x586c92(0x1aa)](_0x1965e2,_0x1ec4a4,{'value':_0x4012c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1965e2[_0x1ec4a4]=_0x4012c7,_0x1965e2;}let _0x325e0e=(0x0,_0x19d6e9[_0x3dc416(0x1b6)])(_0x3dc416(0x120));var _0x1d3b48=class{constructor(){const _0x549480=_0x3dc416;_0x4cbb7b(this,_0x549480(0x1ac),new Map());}[_0x3dc416(0x110)](_0xe87b7b){const _0x1bb4eb=_0x3dc416;let _0x1add7a=_0xe87b7b[_0x1bb4eb(0x1a7)];if(!this[_0x1bb4eb(0x1ac)][_0x1bb4eb(0x15c)](_0x1add7a))return this[_0x1bb4eb(0x1ac)][_0x1bb4eb(0x10e)](_0x1add7a,_0xe87b7b),(0x0,_0x19d6e9[_0x1bb4eb(0x1db)])(()=>{const _0x317896=_0x1bb4eb;this[_0x317896(0x1ac)]['get'](_0x1add7a)===_0xe87b7b&&this[_0x317896(0x1ac)][_0x317896(0x18b)](_0x1add7a);});}[_0x3dc416(0x119)](_0x46abef){const _0xc39895=_0x3dc416;return this[_0xc39895(0x1ac)]['get'](_0x46abef);}['getSupportedTypes'](){const _0x4357de=_0x3dc416;return new Set(this[_0x4357de(0x1ac)][_0x4357de(0x17f)]());}};let _0x24d525=/^[A-Za-z0-9][A-Za-z0-9._:-]*$/,_0x5efd64=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,_0x27ae6d=(0x0,_0x19d6e9['createIdentifier'])('resources.registry.service');function _0x16161b(_0xb281a8){const _0x536f3c=_0x3dc416;return JSON[_0x536f3c(0x1d0)]([_0xb281a8[_0x536f3c(0x161)],_0xb281a8[_0x536f3c(0x112)]]);}function _0x473ac9(_0x8a3df4){const _0x244bb5=_0x3dc416;return typeof _0x8a3df4==_0x244bb5(0x144)?_0x8a3df4:Object[_0x244bb5(0x147)]({..._0x8a3df4});}function _0x9f6200(_0x1116f9){const _0x331904=_0x3dc416;return Object[_0x331904(0x147)]({'id':_0x1116f9['id'],'label':_0x473ac9(_0x1116f9[_0x331904(0x153)])});}function _0x4f61c8(_0x1a7853){const _0x21b52d=_0x3dc416;return Object[_0x21b52d(0x147)]({'id':_0x1a7853['id'],'label':_0x473ac9(_0x1a7853[_0x21b52d(0x153)])});}function _0x4e9e5b(_0x12ffcf){const _0x1525e9=_0x3dc416;return Object['freeze']({'type':_0x12ffcf[_0x1525e9(0x1a7)],'value':_0x12ffcf[_0x1525e9(0x151)]});}function _0x246102(_0x2541c1){const _0x24d054=_0x3dc416;return Object['freeze']({..._0x2541c1,..._0x2541c1[_0x24d054(0x190)]===void 0x0?{}:{'reference':Object['freeze']({..._0x2541c1[_0x24d054(0x190)]})}});}function _0x3d9096(_0x1809d2){const _0x18c3f2=_0x3dc416;try{let _0x374fb3=atob(_0x1809d2),_0x3c3011=Uint8Array['from'](_0x374fb3,_0x3b4275=>_0x3b4275[_0x18c3f2(0x1b2)](0x0));return new TextDecoder(_0x18c3f2(0x1a5),{'fatal':!0x0})[_0x18c3f2(0x17e)](_0x3c3011);}catch{return;}}function _0x24974a(_0x4bf892){const _0x39bb4f=_0x3dc416;let [_0xf77bcc,_0x5c7f42,..._0x261538]=_0x4bf892[_0x39bb4f(0x154)]()[_0x39bb4f(0x1c7)]('/');if(!(_0x261538[_0x39bb4f(0x141)]>0x0||!_0x5efd64[_0x39bb4f(0x14b)](_0xf77bcc)||!_0x5efd64[_0x39bb4f(0x14b)](_0x5c7f42)))return _0xf77bcc[_0x39bb4f(0x1c9)]()+'/'+_0x5c7f42[_0x39bb4f(0x1c9)]();}function _0x5e7f6f(_0x420108,_0x5c3d2b){const _0x49dae4=_0x3dc416;let _0x3d01e9=/^data:([^;,]+)((?:;[^,]*)*),(.*)$/is[_0x49dae4(0x1ce)](_0x420108[_0x49dae4(0x151)]),_0x41db21=_0x3d01e9&&_0x24974a(_0x3d01e9[0x1]);if(!_0x3d01e9||!(_0x41db21!=null&&_0x41db21[_0x49dae4(0x111)](_0x49dae4(0x130))))return{'ok':!0x1,'code':_0x49dae4(0x163)};if(_0x41db21!==_0x49dae4(0x1d6)||_0x5c3d2b)return{'ok':!0x0,'source':_0x420108};let _0x1ee7dc=_0x3d01e9[0x2][_0x49dae4(0x1c7)](';')[_0x49dae4(0x158)](Boolean),_0x111947=_0x3d01e9[0x3],_0x14fd9f;if(_0x1ee7dc[_0x49dae4(0x186)](_0x1c04ba=>_0x1c04ba[_0x49dae4(0x1c9)]()===_0x49dae4(0x17c)))_0x14fd9f=_0x3d9096(_0x111947);else try{_0x14fd9f=decodeURIComponent(_0x111947);}catch{_0x14fd9f=void 0x0;}if(_0x14fd9f===void 0x0)return{'ok':!0x1,'code':_0x49dae4(0x163)};let _0x393beb=_0x2c9cd5(_0x14fd9f);return _0x393beb['ok']?{'ok':!0x0,'source':{'type':'dataUrl','value':'data:image/svg+xml;charset=utf-8,'+encodeURIComponent(_0x393beb[_0x49dae4(0x151)])}}:{'ok':!0x1,'code':'unsafe-svg'};}function _0x2131fd(_0x265ce2,_0x19e918){const _0x171f10=_0x3dc416;if(_0x265ce2[_0x171f10(0x1a7)]==='url')try{let _0x1dde49=new URL(_0x265ce2[_0x171f10(0x151)])[_0x171f10(0x132)];return[_0x171f10(0x167),'https:','blob:'][_0x171f10(0x156)](_0x1dde49)?{'ok':!0x0,'source':_0x265ce2}:{'ok':!0x1,'code':_0x171f10(0x163)};}catch{return{'ok':!0x1,'code':_0x171f10(0x163)};}if(_0x265ce2['type']===_0x171f10(0x198))return _0x5e7f6f(_0x265ce2,_0x19e918);if(_0x265ce2[_0x171f10(0x1a7)]===_0x171f10(0x1cd)){if(_0x19e918)return{'ok':!0x0,'source':_0x265ce2};let _0x445ec9=_0x2c9cd5(_0x265ce2[_0x171f10(0x151)]);return _0x445ec9['ok']?{'ok':!0x0,'source':{'type':'svgText','value':_0x445ec9[_0x171f10(0x151)]}}:{'ok':!0x1,'code':_0x171f10(0x1d1)};}return{'ok':!0x1,'code':_0x171f10(0x163)};}function _0x82b834(_0x4f6f5c){const _0x510743=_0x3dc416;if(typeof _0x4f6f5c!=_0x510743(0x178)||!_0x4f6f5c)return!0x1;let _0x4ebe13=_0x4f6f5c;return(_0x4ebe13[_0x510743(0x1a7)]===_0x510743(0x173)||_0x4ebe13[_0x510743(0x1a7)]===_0x510743(0x198)||_0x4ebe13[_0x510743(0x1a7)]===_0x510743(0x1cd))&&typeof _0x4ebe13[_0x510743(0x151)]==_0x510743(0x144);}function _0x1d9b82(_0x3ad35b){const _0x280c2a=_0x3dc416;return _0x3ad35b===void 0x0||_0x3ad35b==='reference'||_0x3ad35b===_0x280c2a(0x118);}function _0x453745(_0x425a64){const _0x18ab89=_0x3dc416;if(_0x425a64===void 0x0)return!0x0;if(typeof _0x425a64!=_0x18ab89(0x178)||!_0x425a64)return!0x1;let _0x7ced6b=_0x425a64;return typeof _0x7ced6b[_0x18ab89(0x11d)]==_0x18ab89(0x195)&&Number[_0x18ab89(0x1a9)](_0x7ced6b[_0x18ab89(0x11d)])&&_0x7ced6b[_0x18ab89(0x11d)]>0x0&&typeof _0x7ced6b[_0x18ab89(0x18c)]==_0x18ab89(0x195)&&Number[_0x18ab89(0x1a9)](_0x7ced6b['height'])&&_0x7ced6b[_0x18ab89(0x18c)]>0x0;}function _0x36f8bc(_0x53c914,_0xbf2489){const _0x29bfa8=_0x3dc416;return!_0x1d9b82(_0x53c914[_0x29bfa8(0x1a6)])||!_0x1d9b82(_0xbf2489)||_0x53c914[_0x29bfa8(0x1ae)]!==void 0x0&&typeof _0x53c914[_0x29bfa8(0x1ae)]!=_0x29bfa8(0x19a)||!_0x453745(_0x53c914['intrinsicSize'])?!0x1:_0x53c914['initialColor']===void 0x0||typeof _0x53c914['initialColor']=='string';}function _0x135f17(_0x3cbf7c,_0xfd76c,_0x3ff9fe){const _0x549325=_0x3dc416;var _0x2fd9ec,_0x2f8bce,_0x1451d6,_0x283dfc,_0x43d64b;let _0x43a9d7;if(_0x3cbf7c[_0x549325(0x1cb)]!==void 0x0){if(!_0x82b834(_0x3cbf7c[_0x549325(0x1cb)]))return{'ok':!0x1,'code':_0x549325(0x163)};let _0x35fcf0=_0x2131fd(_0x3cbf7c[_0x549325(0x1cb)],_0x3ff9fe);if(!_0x35fcf0['ok'])return _0x35fcf0;_0x43a9d7=_0x4e9e5b(_0x35fcf0['source']);}let _0x277d8b=_0x3cbf7c['payload'];if(typeof _0x277d8b!=_0x549325(0x178)||!_0x277d8b||typeof _0x277d8b['type']!=_0x549325(0x144))return{'ok':!0x1,'code':_0x549325(0x138)};let _0x516c7a=_0x3cbf7c;if(_0x277d8b[_0x549325(0x1a7)]!==_0x549325(0x199))return{'ok':!0x0,'descriptor':_0x43a9d7===void 0x0?{..._0x516c7a}:{..._0x516c7a,'preview':_0x43a9d7}};let _0x22d134=_0x277d8b;if(!_0x82b834(_0x22d134[_0x549325(0x13e)])||!_0x36f8bc(_0x22d134,(_0x2fd9ec=_0xfd76c['defaults'])==null?void 0x0:_0x2fd9ec[_0x549325(0x1a6)]))return{'ok':!0x1,'code':'invalid-image-payload'};let _0x20f4d4=(_0x2f8bce=(_0x1451d6=_0x22d134[_0x549325(0x1a6)])==null?(_0x283dfc=_0xfd76c[_0x549325(0x160)])==null?void 0x0:_0x283dfc[_0x549325(0x1a6)]:_0x1451d6)==null?_0x549325(0x190):_0x2f8bce,_0x59a14f=_0x2131fd(_0x22d134[_0x549325(0x13e)],_0x3ff9fe);if(!_0x59a14f['ok'])return _0x59a14f;let _0x4b7d70={..._0x22d134,'source':_0x4e9e5b(_0x59a14f[_0x549325(0x13e)]),..._0x22d134['intrinsicSize']===void 0x0?{}:{'intrinsicSize':Object[_0x549325(0x147)]({..._0x22d134[_0x549325(0x192)]})},'storagePolicy':_0x20f4d4,'colorEditable':(_0x43d64b=_0x22d134['colorEditable'])==null?!0x1:_0x43d64b};return Object[_0x549325(0x147)](_0x4b7d70),{'ok':!0x0,'descriptor':{..._0x516c7a,..._0x43a9d7===void 0x0?{}:{'preview':_0x43a9d7},'payload':_0x4b7d70}};}var _0x1791c5=class extends _0x19d6e9[_0x3dc416(0x185)]{constructor(..._0x557c75){const _0x128380=_0x3dc416;super(..._0x557c75),_0x4cbb7b(this,_0x128380(0x1c0),new Map()),_0x4cbb7b(this,_0x128380(0x1b3),new _0x5ddee1['BehaviorSubject'](0x0)),_0x4cbb7b(this,_0x128380(0x18d),this[_0x128380(0x1b3)][_0x128380(0x168)]()),_0x4cbb7b(this,_0x128380(0x13c),0x0);}['register'](_0x285670,_0x425f9c){const _0x48037b=_0x3dc416;var _0x44ae9f,_0x34a5f9;let _0x298406=[],_0x515462=[],_0x2e0eba=[],_0x5704c8=()=>{const _0x3039ab=_0x2e22;let _0x572853=Object[_0x3039ab(0x147)]([..._0x298406]),_0x2ad87c=Object['freeze'](_0x2e0eba[_0x3039ab(0x12c)](_0x246102)),_0x243015=(0x0,_0x19d6e9[_0x3039ab(0x1db)])(()=>{const _0x586e97=_0x3039ab;let _0x213129=!0x1;for(let _0x10c098 of _0x515462)_0x213129=this['_resources'][_0x586e97(0x18b)](_0x10c098)||_0x213129;_0x213129&&this[_0x586e97(0x1b3)]['next'](this[_0x586e97(0x1b3)][_0x586e97(0x151)]+0x1);});return Object['freeze'](Object[_0x3039ab(0x115)](_0x243015,{'accepted':_0x572853,'diagnostics':_0x2ad87c}));};if(!_0x24d525['test'](_0x285670[_0x48037b(0x161)]))return _0x2e0eba['push']({'code':_0x48037b(0x196),'message':_0x48037b(0x19e)+_0x285670[_0x48037b(0x161)]+_0x48037b(0x15f),'reference':{'registryId':_0x285670['registryId']}}),_0x5704c8();let _0xe74e16=new Map();for(let _0x4ee074 of(_0x44ae9f=_0x285670[_0x48037b(0x17b)])==null?[]:_0x44ae9f)_0xe74e16['has'](_0x4ee074['id'])?_0x2e0eba[_0x48037b(0x1a8)]({'code':_0x48037b(0x179),'message':_0x48037b(0x145)+_0x4ee074['id']+'\x22\x20is\x20duplicated\x20in\x20registry\x20\x22'+_0x285670[_0x48037b(0x161)]+'\x22.','reference':{'registryId':_0x285670[_0x48037b(0x161)]}}):_0xe74e16[_0x48037b(0x10e)](_0x4ee074['id'],_0x9f6200(_0x4ee074));let _0x1f12dc=new Map();for(let _0x234f4a of(_0x34a5f9=_0x285670[_0x48037b(0x182)])==null?[]:_0x34a5f9)_0x1f12dc[_0x48037b(0x15c)](_0x234f4a['id'])?_0x2e0eba[_0x48037b(0x1a8)]({'code':_0x48037b(0x15e),'message':_0x48037b(0x1cc)+_0x234f4a['id']+_0x48037b(0x1c6)+_0x285670[_0x48037b(0x161)]+'\x22.','reference':{'registryId':_0x285670[_0x48037b(0x161)]}}):_0x1f12dc['set'](_0x234f4a['id'],_0x4f61c8(_0x234f4a));for(let _0x55209d of _0x285670['resources']){var _0x5ddc57,_0x2bec72;let _0x51180b=Object['freeze']({'registryId':_0x285670[_0x48037b(0x161)],'resourceId':_0x55209d['id']});if(!_0x24d525[_0x48037b(0x14b)](_0x55209d['id'])){_0x2e0eba[_0x48037b(0x1a8)]({'code':_0x48037b(0x11f),'message':_0x48037b(0x15b)+_0x55209d['id']+_0x48037b(0x15f),'reference':_0x51180b});continue;}let _0xdb083=_0x16161b(_0x51180b);if(this['_resources']['has'](_0xdb083)){_0x2e0eba['push']({'code':'duplicate-resource','message':_0x48037b(0x128)+_0x55209d['id']+_0x48037b(0x164)+_0x285670[_0x48037b(0x161)]+'\x22.','reference':_0x51180b});continue;}if(_0x55209d[_0x48037b(0x136)]!==void 0x0&&!_0xe74e16[_0x48037b(0x15c)](_0x55209d[_0x48037b(0x136)])){_0x2e0eba[_0x48037b(0x1a8)]({'code':_0x48037b(0x140),'message':_0x48037b(0x128)+_0x55209d['id']+_0x48037b(0x1c2)+_0x55209d[_0x48037b(0x136)]+'\x22.','reference':_0x51180b});continue;}let _0x45454e=(_0x5ddc57=_0x55209d[_0x48037b(0x148)])==null?void 0x0:_0x5ddc57[_0x48037b(0x17d)](_0x441e7e=>!_0x1f12dc[_0x48037b(0x15c)](_0x441e7e));if(_0x45454e!==void 0x0){_0x2e0eba[_0x48037b(0x1a8)]({'code':_0x48037b(0x171),'message':_0x48037b(0x128)+_0x55209d['id']+_0x48037b(0x139)+_0x45454e+'\x22.','reference':_0x51180b});continue;}let _0x29ce30=_0x135f17(_0x55209d,_0x285670,(_0x425f9c==null?void 0x0:_0x425f9c[_0x48037b(0x19f)])===!0x0);if(!_0x29ce30['ok']){_0x2e0eba['push']({'code':_0x29ce30[_0x48037b(0x1a2)],'message':'Resource\x20\x22'+_0x55209d['id']+_0x48037b(0x1b7),'reference':_0x51180b});continue;}let _0x5bd425=Object[_0x48037b(0x147)]({..._0x29ce30[_0x48037b(0x117)],'name':_0x473ac9(_0x29ce30[_0x48037b(0x117)][_0x48037b(0x19b)]),'description':_0x29ce30['descriptor']['description']===void 0x0?void 0x0:_0x473ac9(_0x29ce30[_0x48037b(0x117)][_0x48037b(0x1d5)]),'tagIds':_0x29ce30['descriptor'][_0x48037b(0x148)]===void 0x0?void 0x0:Object[_0x48037b(0x147)]([..._0x29ce30[_0x48037b(0x117)][_0x48037b(0x148)]]),'keywords':_0x29ce30[_0x48037b(0x117)]['keywords']===void 0x0?void 0x0:Object[_0x48037b(0x147)]([..._0x29ce30['descriptor'][_0x48037b(0x176)]]),'registryId':_0x285670[_0x48037b(0x161)],'defaultLocale':_0x285670[_0x48037b(0x15a)],'registrationIndex':this['_registrationIndex']++,'group':_0x55209d[_0x48037b(0x136)]===void 0x0?void 0x0:_0xe74e16[_0x48037b(0x119)](_0x55209d[_0x48037b(0x136)]),'tags':Object[_0x48037b(0x147)](((_0x2bec72=_0x55209d[_0x48037b(0x148)])==null?[]:_0x2bec72)[_0x48037b(0x12c)](_0x281a68=>_0x1f12dc[_0x48037b(0x119)](_0x281a68)))});this[_0x48037b(0x1c0)][_0x48037b(0x10e)](_0xdb083,_0x5bd425),_0x298406['push'](_0x51180b),_0x515462[_0x48037b(0x1a8)](_0xdb083);}return _0x298406[_0x48037b(0x141)]>0x0&&this[_0x48037b(0x1b3)][_0x48037b(0x16c)](this[_0x48037b(0x1b3)][_0x48037b(0x151)]+0x1),_0x5704c8();}[_0x3dc416(0x119)](_0x2fc51b){const _0x31fcb3=_0x3dc416;return this[_0x31fcb3(0x1c0)][_0x31fcb3(0x119)](_0x16161b(_0x2fc51b));}['getAll'](){const _0x13b4d9=_0x3dc416;return Object[_0x13b4d9(0x147)](Array['from'](this[_0x13b4d9(0x1c0)]['values']()));}[_0x3dc416(0x172)](){const _0x1fa983=_0x3dc416;this[_0x1fa983(0x1c0)][_0x1fa983(0x1bb)]>0x0&&(this[_0x1fa983(0x1c0)][_0x1fa983(0x122)](),this[_0x1fa983(0x1b3)][_0x1fa983(0x16c)](this[_0x1fa983(0x1b3)][_0x1fa983(0x151)]+0x1)),this[_0x1fa983(0x1b3)][_0x1fa983(0x174)](),super[_0x1fa983(0x172)]();}};function _0x464590(_0x1de5a4,_0x16e0d1){return function(_0x279aa0,_0x157ea3){_0x16e0d1(_0x279aa0,_0x157ea3,_0x1de5a4);};}function _0x1c7525(_0x231ae8,_0x151ad5,_0x511f9b,_0x2300cf){const _0x2b697c=_0x3dc416;var _0x50ccc9=arguments[_0x2b697c(0x141)],_0x5d000b=_0x50ccc9<0x3?_0x151ad5:_0x2300cf===null?_0x2300cf=Object[_0x2b697c(0x1ba)](_0x151ad5,_0x511f9b):_0x2300cf,_0x248046;if(typeof Reflect==_0x2b697c(0x178)&&typeof Reflect['decorate']==_0x2b697c(0x11c))_0x5d000b=Reflect[_0x2b697c(0x1d2)](_0x231ae8,_0x151ad5,_0x511f9b,_0x2300cf);else{for(var _0x1888a8=_0x231ae8[_0x2b697c(0x141)]-0x1;_0x1888a8>=0x0;_0x1888a8--)(_0x248046=_0x231ae8[_0x1888a8])&&(_0x5d000b=(_0x50ccc9<0x3?_0x248046(_0x5d000b):_0x50ccc9>0x3?_0x248046(_0x151ad5,_0x511f9b,_0x5d000b):_0x248046(_0x151ad5,_0x511f9b))||_0x5d000b);}return _0x50ccc9>0x3&&_0x5d000b&&Object[_0x2b697c(0x1aa)](_0x151ad5,_0x511f9b,_0x5d000b),_0x5d000b;}let _0x58ccc4=(0x0,_0x19d6e9[_0x3dc416(0x1b6)])(_0x3dc416(0x1a4));function _0x371078(_0xab61d0,_0x31a9cc){const _0x405681=_0x3dc416;var _0x230ce0,_0x3643a2;let _0x2e9a9f=((_0x230ce0=_0xab61d0['order'])==null?_0xab61d0[_0x405681(0x1dc)]:_0x230ce0)-((_0x3643a2=_0x31a9cc['order'])==null?_0x31a9cc['registrationIndex']:_0x3643a2);if(_0x2e9a9f!==0x0)return _0x2e9a9f;let _0x5d82b4=_0xab61d0[_0x405681(0x1dc)]-_0x31a9cc[_0x405681(0x1dc)];if(_0x5d82b4!==0x0)return _0x5d82b4;let _0x39a26b=JSON[_0x405681(0x1d0)]([_0xab61d0[_0x405681(0x161)],_0xab61d0['id']]),_0x17b0f9=JSON[_0x405681(0x1d0)]([_0x31a9cc['registryId'],_0x31a9cc['id']]);return _0x39a26b<_0x17b0f9?-0x1:+(_0x39a26b>_0x17b0f9);}let _0x59253d=class extends _0x19d6e9['Disposable']{constructor(_0x10af8e){const _0x91cf3f=_0x3dc416;super(),this[_0x91cf3f(0x129)]=_0x10af8e,_0x4cbb7b(this,_0x91cf3f(0x1bc),new Map()),this[_0x91cf3f(0x1ca)](this[_0x91cf3f(0x129)][_0x91cf3f(0x18d)]['subscribe'](()=>this[_0x91cf3f(0x1bc)]['clear']()));}[_0x3dc416(0x1d9)](_0x54f925){const _0x3b8b37=_0x3dc416;var _0x2e7732;let _0x27a8e9=_0x54f925['text']===void 0x0?void 0x0:_0x9dbcf7(_0x54f925[_0x3b8b37(0x1d7)]),_0x2d1647=(_0x2e7732=_0x54f925['tagIds'])==null?[]:_0x2e7732,_0x169f3e=this[_0x3b8b37(0x114)](_0x54f925[_0x3b8b37(0x13b)])[_0x3b8b37(0x158)](_0x55fc39=>_0x27a8e9&&!_0x55fc39['searchText']['includes'](_0x27a8e9)||_0x54f925[_0x3b8b37(0x136)]!==void 0x0&&_0x55fc39[_0x3b8b37(0x117)]['groupId']!==_0x54f925[_0x3b8b37(0x136)]||_0x2d1647[_0x3b8b37(0x186)](_0x5d2a1a=>{const _0x424f7=_0x3b8b37;var _0x1947f0;return!((_0x1947f0=_0x55fc39['descriptor'][_0x424f7(0x148)])!=null&&_0x1947f0['includes'](_0x5d2a1a));})?!0x1:_0x54f925[_0x3b8b37(0x18a)]===void 0x0||_0x54f925[_0x3b8b37(0x18a)]['has'](_0x55fc39[_0x3b8b37(0x117)][_0x3b8b37(0x133)][_0x3b8b37(0x1a7)]));return Object['freeze'](_0x169f3e);}['_getLocalizedIndex'](_0x3e8036){const _0x4dd876=_0x3dc416;let _0x5e277f=this[_0x4dd876(0x1bc)][_0x4dd876(0x119)](_0x3e8036);if(_0x5e277f!==void 0x0)return _0x5e277f;let _0x55945e=this['_registry'][_0x4dd876(0x11e)]()['slice']()[_0x4dd876(0x149)](_0x371078)[_0x4dd876(0x12c)](_0xbe087d=>{const _0x57b462=_0x4dd876;var _0x2f1622;let _0x97e611=_0x527020(_0xbe087d[_0x57b462(0x19b)],_0x3e8036,_0xbe087d[_0x57b462(0x15a)],_0xbe087d['id']),_0x56c2a9=_0xbe087d[_0x57b462(0x1d5)]===void 0x0?void 0x0:_0x527020(_0xbe087d[_0x57b462(0x1d5)],_0x3e8036,_0xbe087d[_0x57b462(0x15a)],_0xbe087d['id']),_0x19460b=_0xbe087d[_0x57b462(0x1a0)]===void 0x0?void 0x0:_0x527020(_0xbe087d[_0x57b462(0x1a0)][_0x57b462(0x153)],_0x3e8036,_0xbe087d[_0x57b462(0x15a)],_0xbe087d[_0x57b462(0x1a0)]['id']),_0x21c0d5=Object[_0x57b462(0x147)](_0xbe087d[_0x57b462(0x182)][_0x57b462(0x12c)](_0xd1db2a=>_0x527020(_0xd1db2a[_0x57b462(0x153)],_0x3e8036,_0xbe087d[_0x57b462(0x15a)],_0xd1db2a['id']))),_0x3ad798=_0x9dbcf7([_0x97e611,_0x56c2a9,_0x19460b,..._0x21c0d5,...(_0x2f1622=_0xbe087d[_0x57b462(0x176)])==null?[]:_0x2f1622]['filter'](_0x3ec151=>_0x3ec151!==void 0x0)[_0x57b462(0x1b8)]('\x20'));return Object['freeze']({'reference':Object[_0x57b462(0x147)]({'registryId':_0xbe087d[_0x57b462(0x161)],'resourceId':_0xbe087d['id']}),'descriptor':_0xbe087d,'name':_0x97e611,..._0x56c2a9===void 0x0?{}:{'description':_0x56c2a9},..._0x19460b===void 0x0?{}:{'groupLabel':_0x19460b},'tagLabels':_0x21c0d5,'searchText':_0x3ad798});}),_0x22452f=Object[_0x4dd876(0x147)](_0x55945e);return this['_localizedIndexes'][_0x4dd876(0x10e)](_0x3e8036,_0x22452f),_0x22452f;}};_0x59253d=_0x1c7525([_0x464590(0x0,_0x27ae6d)],_0x59253d);let _0x4b780d=class extends _0x19d6e9[_0x3dc416(0x11b)]{constructor(_0x54bd7f=_0x20cb5e,_0x4b9b24,_0x2a6d55){const _0xa7162a=_0x3dc416;super(),this[_0xa7162a(0x13d)]=_0x54bd7f,this[_0xa7162a(0x165)]=_0x4b9b24,this[_0xa7162a(0x1b4)]=_0x2a6d55;let {..._0x425c94}=(0x0,_0x19d6e9['merge'])({},_0x20cb5e,this['_config']);this[_0xa7162a(0x1b4)]['setConfig'](_0x459bfb,_0x425c94);}[_0x3dc416(0x14d)](){const _0x461fdf=_0x3dc416;var _0x1895de;[[_0x27ae6d,{'useClass':_0x1791c5}],[_0x58ccc4,{'useClass':_0x59253d}],[_0x325e0e,{'useClass':_0x1d3b48}]][_0x461fdf(0x183)](_0x2e0a73=>this[_0x461fdf(0x165)][_0x461fdf(0x12e)](_0x2e0a73));let _0x3999e5=this[_0x461fdf(0x165)][_0x461fdf(0x119)](_0x27ae6d);((_0x1895de=this[_0x461fdf(0x13d)][_0x461fdf(0x13a)])==null?[]:_0x1895de)[_0x461fdf(0x183)](({input:_0x156d33,options:_0x37a922})=>{const _0x5b1d42=_0x461fdf;this[_0x5b1d42(0x1ca)](_0x3999e5[_0x5b1d42(0x110)](_0x156d33,_0x37a922));});}};_0x4cbb7b(_0x4b780d,'pluginName',_0x3dc416(0x142)),_0x4cbb7b(_0x4b780d,_0x3dc416(0x18e),_0xcbadf1),_0x4cbb7b(_0x4b780d,_0x3dc416(0x1cf),_0x414950),_0x4cbb7b(_0x4b780d,_0x3dc416(0x1a7),_0x19d6e9['UniverInstanceType']['UNIVER_UNKNOWN']),_0x4b780d=_0x1c7525([(0x0,_0x19d6e9[_0x3dc416(0x11a)])(_0x54418a['UniverLicensePlugin']),_0x464590(0x1,(0x0,_0x19d6e9[_0x3dc416(0x180)])(_0x19d6e9[_0x3dc416(0x14f)])),_0x464590(0x2,_0x19d6e9[_0x3dc416(0x1b0)])],_0x4b780d),_0x42ff79[_0x3dc416(0x1d3)]=_0x325e0e,_0x42ff79['IResourceQueryService']=_0x58ccc4,_0x42ff79[_0x3dc416(0x1be)]=_0x27ae6d,_0x42ff79['RESOURCES_PLUGIN_CONFIG_KEY']=_0x459bfb,_0x42ff79[_0x3dc416(0x1b9)]=_0x1d3b48,Object[_0x3dc416(0x1aa)](_0x42ff79,_0x3dc416(0x17a),{'enumerable':!0x0,'get':function(){return _0x59253d;}}),_0x42ff79['ResourceRegistryService']=_0x1791c5,Object['defineProperty'](_0x42ff79,_0x3dc416(0x189),{'enumerable':!0x0,'get':function(){return _0x4b780d;}}),_0x42ff79[_0x3dc416(0x19d)]=_0x9dbcf7,_0x42ff79[_0x3dc416(0x14e)]=_0x527020,_0x42ff79[_0x3dc416(0x1d4)]=_0x2c9cd5;}));function _0x2e22(_0x1930cd,_0x317d30){_0x1930cd=_0x1930cd-0x10e;const _0x34dc5d=_0x34dc();let _0x2e2205=_0x34dc5d[_0x1930cd];return _0x2e2205;}function _0x34dc(){const _0x18d04a=['next','ellipse','@univerjs-pro/license','http://www.w3.org/2000/svg','remove','unknown-tag','dispose','url','complete','Module','keywords','serializeToString','object','duplicate-group','ResourceQueryService','groups','base64','find','decode','keys','Inject','4508844iyKgvO','tags','forEach','svg-too-complex','Disposable','some','3375379fjKmqN','stroke','UniverResourcesPlugin','payloadTypes','delete','height','revision$','packageName','call','reference','UniverProResources','intrinsicSize','361656HcRuoF','linearGradient','number','invalid-registry-id','5619030tJPdmT','dataUrl','image','boolean','name','byteLength','normalizeResourceSearchText','Registry\x20id\x20\x22','trusted','group','15UJnXip','code','231806KBoqmf','resources.query.service','utf-8','storagePolicy','type','push','isFinite','defineProperty','parseFromString','_handlers','6ZhzgDn','colorEditable','id.viewBox.width.height.x.y.x1.x2.y1.y2.cx.cy.r.rx.ry.d.points.transform.fill.fill-opacity.fill-rule.stroke.stroke-width.stroke-opacity.stroke-linecap.stroke-linejoin.stroke-dasharray.opacity.offset.stop-color.stop-opacity.gradientUnits.gradientTransform.patternUnits.patternContentUnits.clip-path.mask.preserveAspectRatio.role.aria-label.href.xlink:href','IConfigService','querySelector','charCodeAt','_revision$','_configService','NFKC','createIdentifier','\x22\x20has\x20an\x20invalid\x20or\x20unsafe\x20image\x20source.','join','ResourcePayloadHandlerRegistryService','getOwnPropertyDescriptor','size','_localizedIndexes','constructor','IResourceRegistryService','iterator','_resources','symbol','\x22\x20references\x20unknown\x20group\x20\x22','clipPath','doctype','exports','\x22\x20is\x20duplicated\x20in\x20registry\x20\x22','split','amd','toLowerCase','disposeWithMe','preview','Tag\x20id\x20\x22','svgText','exec','version','stringify','unsafe-svg','decorate','IResourcePayloadHandlerRegistryService','sanitizeResourceSvg','description','image/svg+xml','text','documentElement','query','from','toDisposable','registrationIndex','1348897NgCoRt','set','rxjs','register','startsWith','resourceId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_getLocalizedIndex','assign','mask','descriptor','managed','get','DependentOn','Plugin','function','width','getAll','invalid-resource-id','resources.payload-handler-registry.service','style','clear','resources.config','96hCdXqI','UniverCore','desc','radialGradient','Resource\x20\x22','_registry','clip-path','xmlns','map','line','add','namespaceURI','image/','toPrimitive','protocol','payload','localName','parsererror','groupId','@univerjs/core','invalid-image-payload','\x22\x20references\x20unknown\x20tag\x20\x22','registrations','locale','_registrationIndex','_config','source','UniverProLicense','unknown-group','length','UNIVER_RESOURCES_PLUGIN','xlink:href','string','Group\x20id\x20\x22','svg-too-large','freeze','tagIds','sort','nodeType','test','pattern','onStarting','resolveResourceLocalizedText','Injector','svg','value','default','label','trim','polyline','includes','values','filter','invalid-svg','defaultLocale','Resource\x20id\x20\x22','has','circle','duplicate-tag','\x22\x20is\x20invalid.','defaults','registryId','path','invalid-image-source','\x22\x20is\x20already\x20registered\x20in\x20registry\x20\x22','_injector','normalize','http:','asObservable','replace','fill','4771955ZiKSKA'];_0x34dc=function(){return _0x18d04a;};return _0x34dc();}
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@univerjs-pro/resources",
3
+ "version": "1.0.0-insiders.20260717-1e84621",
4
+ "private": false,
5
+ "description": "Product-independent static resource registry for Univer Pro.",
6
+ "author": "DreamNum Co., Ltd. <developer@univer.ai>",
7
+ "funding": {
8
+ "type": "opencollective",
9
+ "url": "https://opencollective.com/univer"
10
+ },
11
+ "homepage": "https://univer.ai",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/dream-num/univer"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/dream-num/univer/issues"
18
+ },
19
+ "keywords": [
20
+ "univer",
21
+ "univer-pro",
22
+ "resources"
23
+ ],
24
+ "exports": {
25
+ ".": {
26
+ "import": "./lib/es/index.js",
27
+ "require": "./lib/cjs/index.js",
28
+ "types": "./lib/types/index.d.ts"
29
+ },
30
+ "./*": {
31
+ "import": "./lib/es/*",
32
+ "require": "./lib/cjs/*",
33
+ "types": "./lib/types/index.d.ts"
34
+ },
35
+ "./lib/*": "./lib/*"
36
+ },
37
+ "main": "./lib/es/index.js",
38
+ "types": "./lib/types/index.d.ts",
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "directories": {
43
+ "lib": "lib"
44
+ },
45
+ "files": [
46
+ "lib"
47
+ ],
48
+ "peerDependencies": {
49
+ "rxjs": ">=7.0.0"
50
+ },
51
+ "dependencies": {
52
+ "@univerjs/core": "1.0.0-insiders.20260717-1e84621",
53
+ "@univerjs-pro/license": "1.0.0-insiders.20260717-1e84621"
54
+ },
55
+ "devDependencies": {
56
+ "rxjs": "7.8.2",
57
+ "typescript": "^6.0.3",
58
+ "vitest": "^4.1.10",
59
+ "@univerjs-infra/shared": "1.0.0-alpha.3"
60
+ },
61
+ "scripts": {
62
+ "test": "vitest run",
63
+ "test:watch": "vitest",
64
+ "coverage": "vitest run --coverage",
65
+ "typecheck": "tsc --noEmit",
66
+ "build:bundle": "univer-cli build",
67
+ "build:types": "tsc -p tsconfig.node.json",
68
+ "build": "pnpm run build:bundle && pnpm run build:types"
69
+ },
70
+ "module": "./lib/es/index.js"
71
+ }