@poe-platform/safe-js 0.1.464 → 0.1.466

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.
@@ -18332,6 +18332,17 @@ var localeData = Object.freeze({
18332
18332
  // packages/safe-js/src/interp/numberformat-numbering.ts
18333
18333
  var NativeNumberFormat = Intl.NumberFormat;
18334
18334
  function localizeNumberParts(parts, locale, options) {
18335
+ parts = parts.flatMap((part) => {
18336
+ if (part.type !== "minusSign" && part.type !== "plusSign") return [part];
18337
+ const separated = [];
18338
+ for (const char of part.value) {
18339
+ const type = ["\u061C", "\u200E", "\u200F"].includes(char) ? "literal" : part.type;
18340
+ const previous = separated.at(-1);
18341
+ if (previous?.type === type) previous.value += char;
18342
+ else separated.push({ ...part, type, value: char });
18343
+ }
18344
+ return separated;
18345
+ });
18335
18346
  const numberingSystem = options.numberingSystem;
18336
18347
  const pluralType = options.style === "unit" ? "unit" : options.style === "currency" && options.currencyDisplay === "name" ? "currency" : void 0;
18337
18348
  const integralPlural = pluralType !== void 0 && options.notation === "standard" && !parts.some((part) => part.type === "fraction");
@@ -38508,7 +38519,7 @@ var structuredCloneErrorNames = ["Error", "EvalError", "RangeError", "ReferenceE
38508
38519
  function* cloneStructuredGraph(value, state, budget, depth = 0) {
38509
38520
  assertSandboxDataDepth(depth);
38510
38521
  budget.visitNode();
38511
- if (typeof value === "symbol" || isSandboxModuleNamespace(value) || isSandboxClosure(value) || isSandboxPromise(value) || isSandboxGenerator(value) || isSandboxCollectionIterator(value) || isSandboxRegExpIterator(value) || isSandboxArrayIterator(value) || isSandboxStringIterator(value) || isSandboxArguments(value) || isSandboxSegmenter(value) || isSandboxSegments(value))
38522
+ if (typeof value === "symbol" || isSandboxModuleNamespace(value) || isSandboxClosure(value) || isSandboxPromise(value) || isSandboxGenerator(value) || isSandboxCollectionIterator(value) || isSandboxRegExpIterator(value) || isSandboxArrayIterator(value) || isSandboxStringIterator(value) || isSandboxArguments(value) || isSandboxSegmenter(value) || isSandboxSegments(value) || isSandboxLocale(value) || isSandboxCollator(value) || isSandboxDateTimeFormat(value) || isSandboxDisplayNames(value) || isSandboxListFormat(value) || isSandboxNumberFormat(value) || isSandboxPluralRules(value) || isSandboxRelativeTimeFormat(value))
38512
38523
  throw new DOMException("Value cannot be structured cloned.", "DataCloneError");
38513
38524
  if (typeof value !== "object" || value === null) return allocateProducedSandboxValue(value, budget);
38514
38525
  if (iteratorHelperStates.has(value) || iteratorWrapperStates.has(value))
@@ -56712,4 +56723,4 @@ The above copyright notice and this permission notice shall be included in all c
56712
56723
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
56713
56724
 
56714
56725
  */
56715
- //# sourceMappingURL=chunk-N45AVH5W.js.map
56726
+ //# sourceMappingURL=chunk-3HK3GDZB.js.map