const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_createExtensionPattern$1 = require('./createExtensionPattern.js');

//#region ../../node_modules/.pnpm/libphonenumber-js@1.11.3/node_modules/libphonenumber-js/build/helpers/extension/extractExtension.js
var require_extractExtension = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/libphonenumber-js@1.11.3/node_modules/libphonenumber-js/build/helpers/extension/extractExtension.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	exports["default"] = extractExtension;
	var _createExtensionPattern = _interopRequireDefault(require_createExtensionPattern$1.require_createExtensionPattern());
	function _interopRequireDefault(obj) {
		return obj && obj.__esModule ? obj : { "default": obj };
	}
	var EXTN_PATTERN = new RegExp("(?:" + (0, _createExtensionPattern["default"])() + ")$", "i");
	function extractExtension(number) {
		var start = number.search(EXTN_PATTERN);
		if (start < 0) return {};
		var numberWithoutExtension = number.slice(0, start);
		var matches = number.match(EXTN_PATTERN);
		var i = 1;
		while (i < matches.length) {
			if (matches[i]) return {
				number: numberWithoutExtension,
				ext: matches[i]
			};
			i++;
		}
	}
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_extractExtension();
  }
});